refactor: update & disable tidy label instructions

This commit is contained in:
Rainer Killinger
2021-01-18 14:58:09 +01:00
parent 02178d5a5e
commit 2796fd8ec9
2 changed files with 6 additions and 4 deletions

View File

@@ -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}`,
};
}));

View File

@@ -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),