import { Entity } from '@backstage/catalog-model' ; export const GITHUB_INSIGHTS_ANNOTATION = 'github.com/project-slug' ; export const isGithubInsightsAvailable = ( entity ) => Boolean ( entity ?. metadata . annotations ?. [ GITHUB_INSIGHTS_ANNOTATION ] ) ;