From edb7d07750caf9246d68358fe18818a67708fd60 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Wed, 6 Jan 2021 13:50:19 +0100 Subject: [PATCH] Create "url" type location when registering using the catalog-import plugin --- .changeset/mean-seas-bake.md | 5 +++++ plugins/catalog-import/src/api/CatalogImportClient.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/mean-seas-bake.md diff --git a/.changeset/mean-seas-bake.md b/.changeset/mean-seas-bake.md new file mode 100644 index 0000000000..d675352ebd --- /dev/null +++ b/.changeset/mean-seas-bake.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-import': patch +--- + +Create "url" type location when registering using the catalog-import plugin. diff --git a/plugins/catalog-import/src/api/CatalogImportClient.ts b/plugins/catalog-import/src/api/CatalogImportClient.ts index 0e3ea2e1d6..0e28042db3 100644 --- a/plugins/catalog-import/src/api/CatalogImportClient.ts +++ b/plugins/catalog-import/src/api/CatalogImportClient.ts @@ -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', }),