mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +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
|
* @param api GitLab API instance to use for the requests
|
||||||
*/
|
*/
|
||||||
export async function tidy(api: Api) {
|
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([
|
await Promise.all([
|
||||||
tidyLabels(api, projects),
|
tidyLabels(api, projects),
|
||||||
tidyMilestones(api, projects),
|
tidyMilestones(api, projects),
|
||||||
tidyProtectedBranches(api, projects),
|
tidyProtectedBranches(api, projects),
|
||||||
tidyProtectedTags(api, projects),
|
tidyProtectedTags(api, projects),
|
||||||
tidySubGroupMembers(api),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await tidyOpenIssuesWithoutMeetingLabel(api);
|
await tidyOpenIssuesWithoutMeetingLabel(api);
|
||||||
|
|||||||
Reference in New Issue
Block a user