Create "url" type location when registering using the catalog-import plugin

This commit is contained in:
Oliver Sand
2021-01-06 13:50:19 +01:00
parent 51cae2ceb4
commit edb7d07750
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',
}),