removed all references to the removed SCM-specific location types

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-17 14:48:29 +01:00
parent 4d32ee5dac
commit 209fd128e6
16 changed files with 41 additions and 143 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const getBaseUrl = (
}
const location = parseLocationRef(host);
if (location.type !== 'github' && location.type !== 'url') {
if (location.type !== 'url') {
return 'https://api.github.com';
}
@@ -254,7 +254,7 @@ describe('github-deployments', () => {
entity.entity.metadata.annotations = {
'github.com/project-slug': 'org/repo',
'backstage.io/source-location':
'github:https://my-github-1.com/org/repo/tree/master/',
'url:https://my-github-1.com/org/repo/tree/master/',
};
});
@@ -276,7 +276,7 @@ describe('github-deployments', () => {
entity.entity.metadata.annotations = {
'github.com/project-slug': 'org/repo',
'backstage.io/managed-by-location':
'github:https://my-github-2.com/org/repo/blob/master/catalog-info.yaml',
'url:https://my-github-2.com/org/repo/blob/master/catalog-info.yaml',
};
});
@@ -298,7 +298,7 @@ describe('github-deployments', () => {
entity.entity.metadata.annotations = {
'github.com/project-slug': 'org/repo',
'backstage.io/managed-by-location':
'github:https://my-github-3.com/org/repo/blob/master/catalog-info.yaml',
'url:https://my-github-3.com/org/repo/blob/master/catalog-info.yaml',
};
});
@@ -323,7 +323,7 @@ describe('github-deployments', () => {
entity.entity.metadata.annotations = {
'github.com/project-slug': 'org/repo',
'backstage.io/managed-by-location':
'github:https://my-github-unknown.com/org/repo/blob/master/catalog-info.yaml',
'url:https://my-github-unknown.com/org/repo/blob/master/catalog-info.yaml',
};
});