mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
refactor: update & disable tidy label instructions
This commit is contained in:
@@ -174,7 +174,7 @@ export const NEEDED_LABELS: Label[] = [{
|
||||
return {
|
||||
color: '#FFECDB',
|
||||
description: 'An issue that specifically applies to this platform',
|
||||
name: `platform-${platform}`,
|
||||
name: `platform::${platform}`,
|
||||
};
|
||||
}));
|
||||
|
||||
|
||||
@@ -411,11 +411,13 @@ export async function tidy(api: Api) {
|
||||
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);
|
||||
// get non archived projects of groups
|
||||
let projects = await getProjects(api, groups);
|
||||
projects = projects.filter(project => !project.archived);
|
||||
|
||||
await Promise.all([
|
||||
await tidyLabels(api, projects),
|
||||
// Labels are now specified at Group level
|
||||
// await tidyLabels(api, projects),
|
||||
await tidyMilestones(api, projects),
|
||||
await tidyProtectedBranches(api, projects),
|
||||
await tidyProtectedTags(api, projects),
|
||||
|
||||
Reference in New Issue
Block a user