@@ -9,13 +9,9 @@ import { BackstagePlugin } from '@backstage/core-plugin-api';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { RouteRef } from '@backstage/core-plugin-api';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ALLURE_PROJECT_ID_ANNOTATION" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const ALLURE_PROJECT_ID_ANNOTATION = 'qameta.io/allure-project';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "allurePlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const allurePlugin: BackstagePlugin<
|
||||
{
|
||||
@@ -25,13 +21,9 @@ export const allurePlugin: BackstagePlugin<
|
||||
{}
|
||||
>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "EntityAllureReportContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const EntityAllureReportContent: () => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "isAllureReportAvailable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const isAllureReportAvailable: (entity: Entity) => boolean;
|
||||
```
|
||||
|
||||
@@ -15,8 +15,10 @@
|
||||
*/
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
|
||||
/** @public */
|
||||
export const ALLURE_PROJECT_ID_ANNOTATION = 'qameta.io/allure-project';
|
||||
|
||||
/** @public */
|
||||
export const isAllureReportAvailable = (entity: Entity) =>
|
||||
Boolean(entity.metadata.annotations?.[ALLURE_PROJECT_ID_ANNOTATION]);
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ export const allureRouteRef = createRouteRef({
|
||||
id: 'allure',
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export const allurePlugin = createPlugin({
|
||||
id: 'allure',
|
||||
apis: [
|
||||
@@ -42,6 +43,7 @@ export const allurePlugin = createPlugin({
|
||||
},
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export const EntityAllureReportContent = allurePlugin.provide(
|
||||
createRoutableExtension({
|
||||
name: 'EntityAllureReportContent',
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -199,10 +199,8 @@ const PACKAGE_ROOTS = ['packages', 'plugins'];
|
||||
|
||||
const ALLOW_WARNINGS = [
|
||||
'packages/core-components',
|
||||
'plugins/allure',
|
||||
'plugins/apache-airflow',
|
||||
'plugins/auth-backend',
|
||||
'plugins/bitrise',
|
||||
'plugins/catalog',
|
||||
'plugins/catalog-graphql',
|
||||
'plugins/catalog-import',
|
||||
|
||||
Reference in New Issue
Block a user