Merge pull request #3539 from adamdmharvey/fix-catalog-import-typo

fix(catalog-import): Catalog import internal variable typo and update plugin ID
This commit is contained in:
Patrik Oldsberg
2020-12-04 13:02:11 +01:00
committed by GitHub
3 changed files with 8 additions and 3 deletions
@@ -18,7 +18,7 @@ import { createApiRef } from '@backstage/core';
import { PartialEntity } from '../util/types';
export const catalogImportApiRef = createApiRef<CatalogImportApi>({
id: 'plugin.catalogimport.service',
id: 'plugin.catalog-import.service',
description: 'Used by the catalog import plugin to make requests',
});
@@ -160,7 +160,7 @@ export class CatalogImportClient implements CatalogImportApi {
);
});
const pullRequestRespone = await octo.pulls
const pullRequestResponse = await octo.pulls
.create({
owner,
repo,
@@ -178,7 +178,7 @@ export class CatalogImportClient implements CatalogImportApi {
});
return {
link: pullRequestRespone.data.html_url,
link: pullRequestResponse.data.html_url,
location: `https://github.com/${owner}/${repo}/blob/${repoData.data.default_branch}/${fileName}`,
};
}