Skip to content

Commit

Permalink
ci(sync-maintainers): add logging (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Dec 17, 2023
1 parent 2c967fe commit 10c139a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/sync-maintainers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 10c139a

Please sign in to comment.