feat(github-actions): exported predicate

This commit is contained in:
Ivan Shmidt
2020-09-04 15:59:03 +02:00
parent 72b0d9c9f5
commit bf1b430b96
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,7 @@ import { WorkflowRunsTable } from './WorkflowRunsTable';
import { GITHUB_ACTIONS_ANNOTATION } from './useProjectName';
import { WarningPanel } from '@backstage/core';
const isPluginApplicableToEntity = (entity: Entity) =>
export const isPluginApplicableToEntity = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[GITHUB_ACTIONS_ANNOTATION]) &&
entity.metadata.annotations?.[GITHUB_ACTIONS_ANNOTATION] !== '';
+1 -1
View File
@@ -16,6 +16,6 @@
export { plugin } from './plugin';
export * from './api';
export { Router } from './components/Router';
export { Router, isPluginApplicableToEntity } from './components/Router';
export * from './components/Cards';
export { GITHUB_ACTIONS_ANNOTATION } from './components/useProjectName';