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
-8
View File
@@ -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]);
+2
View File
@@ -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',