Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-19 13:29:04 +02:00
parent 08c87dd854
commit 689df685fb
9 changed files with 15 additions and 17 deletions
+3 -6
View File
@@ -8,18 +8,15 @@
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { Entity } from '@backstage/catalog-model';
// Warning: (ae-missing-release-tag) "bitrisePlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const BITRISE_APP_ANNOTATION = 'bitrise.io/app';
// @public (undocumented)
export const bitrisePlugin: BackstagePlugin<{}, {}, {}>;
// Warning: (ae-missing-release-tag) "EntityBitriseContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const EntityBitriseContent: () => JSX.Element;
// Warning: (ae-missing-release-tag) "isBitriseAvailable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const isBitriseAvailable: (entity: Entity) => boolean;
```
@@ -32,8 +32,10 @@ export type Props = {
entity: Entity;
};
/** @public */
export const BITRISE_APP_ANNOTATION = 'bitrise.io/app';
/** @public */
export const isBitriseAvailable = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[BITRISE_APP_ANNOTATION]);
+1
View File
@@ -17,6 +17,7 @@
import { bitrisePlugin } from './plugin';
import { createComponentExtension } from '@backstage/core-plugin-api';
/** @public */
export const EntityBitriseContent = bitrisePlugin.provide(
createComponentExtension({
name: 'EntityBitriseContent',
+4 -1
View File
@@ -22,4 +22,7 @@
export { bitrisePlugin } from './plugin';
export { EntityBitriseContent } from './extensions';
export { isBitriseAvailable } from './components/BitriseBuildsComponent';
export {
isBitriseAvailable,
BITRISE_APP_ANNOTATION,
} from './components/BitriseBuildsComponent';
+1
View File
@@ -28,6 +28,7 @@ export const bitriseApiRef = createApiRef<BitriseApi>({
id: 'plugin.bitrise.service',
});
/** @public */
export const bitrisePlugin = createPlugin({
id: 'bitrise',
apis: [