fix tsc errors

Signed-off-by: Andrew Ochsner <andrew.ochsner@cognizant.com>
This commit is contained in:
Andrew Ochsner
2023-05-22 16:53:00 -05:00
parent 25c44edf3c
commit 3641353752
6 changed files with 12 additions and 6 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
---
'@backstage/plugin-scaffolder-backend': minor
'@backstage/plugin-catalog-backend-module-github': patch
'@backstage/integration': patch
---
Add support for Repository Variables and Secrets to the `publish:github` and `github:repo:create` scaffolder actions.
Add support for Repository Variables and Secrets to the `publish:github` and `github:repo:create` scaffolder actions. Upgrade octokit introduces some breaking changes.
@@ -174,8 +174,10 @@ class GithubAppManager {
const allInstallations = await this.getInstallations();
const installation = allInstallations.find(
inst =>
inst.account?.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
inst.account &&
'login' in inst.account &&
inst.account.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
);
if (installation) {
return {
@@ -233,6 +233,7 @@ export class GithubMultiOrgReaderProcessor implements CatalogProcessor {
.map(install =>
install.target_type === 'Organization' &&
install.account &&
'login' in install.account &&
install.account.login
? {
name: install.account.login,
@@ -838,6 +838,7 @@ export class GithubMultiOrgEntityProvider implements EntityProvider {
.map(install =>
install.target_type === 'Organization' &&
install.account &&
'login' in install.account &&
install.account.login
? install.account.login
: undefined,
+1 -1
View File
@@ -87,7 +87,7 @@
"morgan": "^1.10.0",
"node-fetch": "^2.6.7",
"nunjucks": "^3.2.3",
"octokit": "^2.0.5",
"octokit": "^2.0.0",
"octokit-plugin-create-pull-request": "^3.10.0",
"p-limit": "^3.1.0",
"p-queue": "^6.6.2",
+2 -2
View File
@@ -8263,7 +8263,7 @@ __metadata:
msw: ^1.0.0
node-fetch: ^2.6.7
nunjucks: ^3.2.3
octokit: ^2.0.5
octokit: ^2.0.0
octokit-plugin-create-pull-request: ^3.10.0
p-limit: ^3.1.0
p-queue: ^6.6.2
@@ -32189,7 +32189,7 @@ __metadata:
languageName: node
linkType: hard
"octokit@npm:^2.0.4, octokit@npm:^2.0.5":
"octokit@npm:^2.0.0, octokit@npm:^2.0.4":
version: 2.0.18
resolution: "octokit@npm:2.0.18"
dependencies: