fix: annotation name
This commit is contained in:
@@ -23,9 +23,7 @@ export const useProjectName = (name: EntityCompoundName) => {
|
||||
|
||||
const { value } = useAsync<string>(async () => {
|
||||
const entity = await catalogApi.getEntityByName(name);
|
||||
return (
|
||||
entity?.metadata.annotations?.['backstage.io/github-actions-id'] ?? ''
|
||||
);
|
||||
return entity?.metadata.annotations?.['github.com/project-slug'] ?? '';
|
||||
});
|
||||
return value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user