mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
feat: tidy sub groups
This commit is contained in:
@@ -341,14 +341,18 @@ export async function tidyIssuesWithoutAssignee(api: Api): Promise<void> {
|
||||
* @param api GitLab API instance to use for the requests
|
||||
*/
|
||||
export async function tidy(api: Api) {
|
||||
const projects = await getProjects(api, GROUPS);
|
||||
// get first level sub groups
|
||||
const groups = GROUPS.slice();
|
||||
groups.push.apply(groups, (await api.getSubGroupsForGroup(groups[0])).map((group) => group.id));
|
||||
|
||||
// get projects of groups
|
||||
const projects = await getProjects(api, groups);
|
||||
|
||||
await Promise.all([
|
||||
tidyLabels(api, projects),
|
||||
tidyMilestones(api, projects),
|
||||
tidyProtectedBranches(api, projects),
|
||||
tidyProtectedTags(api, projects),
|
||||
tidySubGroupMembers(api),
|
||||
]);
|
||||
|
||||
await tidyOpenIssuesWithoutMeetingLabel(api);
|
||||
|
||||
Reference in New Issue
Block a user