Merge pull request #13252 from backstage/freben/api-well-ok-then
When the 🧹 s go marching in
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user