feedback changes

Signed-off-by: Tarak Nath Tatwa <bikashcric1995@gmail.com>
This commit is contained in:
Tarak Nath Tatwa
2023-09-05 10:53:03 +05:30
parent bc5b26ea58
commit 88318cdfad
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -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;
}
-1
View File
@@ -4900,7 +4900,6 @@ __metadata:
"@testing-library/user-event": ^14.0.0
"@types/node": ^16.11.26
"@types/react": ^16.13.1 || ^17.0.0
git-url-parse: ^13.1.0
humanize-duration: ^3.27.0
luxon: ^3.0.0
msw: ^1.0.0