From 10c139a9f62de911e95c299b9b3f10321f9b4beb Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sat, 16 Dec 2023 21:29:09 -0500 Subject: [PATCH] ci(sync-maintainers): add logging (#406) --- scripts/sync-maintainers/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/sync-maintainers/main.ts b/scripts/sync-maintainers/main.ts index d44b6888a2..35695ff41a 100755 --- a/scripts/sync-maintainers/main.ts +++ b/scripts/sync-maintainers/main.ts @@ -52,14 +52,18 @@ const syncMaintainers = async () => { ...team, username: m, }); + console.log(`Added ${m} to the ${team.org}/${team.team_slug} team.`); } + console.log(`${toAdd.length} users added to the ${team.org}/${team.team_slug} team.`) for (const m of toRemove) { await octokit.teams.removeMembershipForUserInOrg({ ...team, username: m, }); + console.log(`Removed ${m} from the ${team.org}/${team.team_slug} team.`); } + console.log(`${toRemove.length} users removed from the ${team.org}/${team.team_slug} team.`) }; await syncMaintainers();