Merge pull request #13252 from backstage/freben/api-well-ok-then
When the 🧹 s go marching in
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
import { bitrisePlugin } from './plugin';
|
||||
import { createComponentExtension } from '@backstage/core-plugin-api';
|
||||
|
||||
/** @public */
|
||||
export const EntityBitriseContent = bitrisePlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'EntityBitriseContent',
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -28,6 +28,7 @@ export const bitriseApiRef = createApiRef<BitriseApi>({
|
||||
id: 'plugin.bitrise.service',
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export const bitrisePlugin = createPlugin({
|
||||
id: 'bitrise',
|
||||
apis: [
|
||||
|
||||
Reference in New Issue
Block a user