Merge pull request #3937 from SDA-SE/feat/catalog-import

Create "url" type location when registering using the catalog-import plugin
This commit is contained in:
Ben Lambert
2021-01-07 10:31:28 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-import': patch
---
Create "url" type location when registering using the catalog-import plugin.
@@ -49,7 +49,7 @@ export class CatalogImportClient implements CatalogImportApi {
},
method: 'POST',
body: JSON.stringify({
location: { type: 'github', target: repo },
location: { type: 'url', target: repo },
}),
},
).catch(e => {
@@ -78,7 +78,7 @@ export class CatalogImportClient implements CatalogImportApi {
},
method: 'POST',
body: JSON.stringify({
type: 'github',
type: 'url',
target: location,
presence: 'optional',
}),