ci(sync-maintainers): add logging (#406)

This commit is contained in:
uncenter authored and GitHub committed 2023-12-17 02:29:09 +00:00
1 parent 2c967fe807
commit 10c139a9f6
1 file changed
+4
+4
View File
@@ -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();