Merge pull request #11425 from sergeyshevch/feature/add-isallureavailable-helper-for-allure-plugin

feat: Add exports for allure plugin annotation helpers
This commit is contained in:
Patrik Oldsberg
2022-05-18 11:33:14 +02:00
committed by GitHub
3 changed files with 20 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-allure': patch
---
Add export for `isAllureReportAvailable` and `ALLURE_PROJECT_ID_ANNOTATION` so it can be used outside of plugin
+11
View File
@@ -6,8 +6,14 @@
/// <reference types="react" />
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)
@@ -22,4 +28,9 @@ export const allurePlugin: BackstagePlugin<
//
// @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;
```
+4
View File
@@ -21,3 +21,7 @@
*/
export { allurePlugin, EntityAllureReportContent } from './plugin';
export {
isAllureReportAvailable,
ALLURE_PROJECT_ID_ANNOTATION,
} from './components/annotationHelpers';