From 21d7d7bc4109f92f979923332020726e48f6d637 Mon Sep 17 00:00:00 2001 From: Sky Moore Date: Sat, 10 Feb 2024 20:07:54 +0700 Subject: [PATCH] v4.0.1 --- dist/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d583125..0ce2246 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8879,7 +8879,6 @@ async function getUserTeams(username, orgName, orgTeams, octokit) { const teams = []; for (const team of orgTeams) { - console.log() const { data: teamMembers } = await octokit.teams.listMembersInOrg({ org: orgName, team_slug: team.slug, @@ -8927,7 +8926,11 @@ async function main() { const [owner, repoName] = ghRepo.split("/"); const repo = await octokit.repos.get({ owner, repo: repoName }); - const { data: orgTeams } = await readOrgOctokit.teams.list({ org: orgName }); + const orgTeams = await readOrgOctokit.paginate( + readOrgOctokit.teams.list, + { org: orgName }, + (response) => response.data + ); let prNumber; if (process.env["INPUT_BRANCH"] && process.env["INPUT_BRANCH"] !== "") {