ci(sync-maintainers): add logging (#406)
This commit is contained in:
1 parent
2c967fe807
commit
10c139a9f6
1 file changed
+4
@@ -52,14 +52,18 @@ const syncMaintainers = async () => {
|
|||||||
...team,
|
...team,
|
||||||
username: m,
|
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) {
|
for (const m of toRemove) {
|
||||||
await octokit.teams.removeMembershipForUserInOrg({
|
await octokit.teams.removeMembershipForUserInOrg({
|
||||||
...team,
|
...team,
|
||||||
username: m,
|
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();
|
await syncMaintainers();
|
||||||
Reference in new issue
Block a user