feedback changes
Signed-off-by: Tarak Nath Tatwa <bikashcric1995@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-azure-devops': minor
|
||||
'@backstage/plugin-azure-devops': patch
|
||||
---
|
||||
|
||||
the project and repository details can be obtained using the `backstage.io/managed-by-location` annotation
|
||||
set azure annotation `dev.azure.com/project-repo` in `AnnotateScmSlugEntityProcessor` to find the project and repo information for the repos that contains `dev.azure.com` in the url
|
||||
|
||||
@@ -27,6 +27,7 @@ import { CatalogProcessor } from '@backstage/plugin-catalog-node';
|
||||
|
||||
const GITHUB_ACTIONS_ANNOTATION = 'github.com/project-slug';
|
||||
const GITLAB_ACTIONS_ANNOTATION = 'gitlab.com/project-slug';
|
||||
const AZURE_ACTIONS_ANNOTATION = 'dev.azure.com/project-repo';
|
||||
|
||||
/** @public */
|
||||
export class AnnotateScmSlugEntityProcessor implements CatalogProcessor {
|
||||
@@ -81,6 +82,9 @@ export class AnnotateScmSlugEntityProcessor implements CatalogProcessor {
|
||||
case 'gitlab':
|
||||
annotation = GITLAB_ACTIONS_ANNOTATION;
|
||||
break;
|
||||
case 'azure':
|
||||
annotation = AZURE_ACTIONS_ANNOTATION;
|
||||
break;
|
||||
default:
|
||||
return entity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user