From 5240d2fd94c00d57c8379f4ea4313a6d94e2632b Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Mon, 17 Apr 2023 10:43:01 +0800 Subject: [PATCH] Fix: remove modification of non-existent team --- src/services/identity/ReposService.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/services/identity/ReposService.ts b/src/services/identity/ReposService.ts index a218eec3b..41f7a0cdd 100644 --- a/src/services/identity/ReposService.ts +++ b/src/services/identity/ReposService.ts @@ -170,13 +170,6 @@ export default class ReposService { repo: repoName, permission: "admin", }) - await octokit.teams.addOrUpdateRepoPermissionsInOrg({ - org: ISOMER_GITHUB_ORGANIZATION_NAME, - team_slug: repoName, - owner: ISOMER_GITHUB_ORGANIZATION_NAME, - repo: repoName, - permission: "push", - }) } generateRepoAndPublishToGitHub = async (