From 2796fd8ec97d86a1d7cccbe4e28692df3471e768 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Mon, 18 Jan 2021 14:58:09 +0100 Subject: [PATCH] refactor: update & disable tidy label instructions --- src/configuration.ts | 2 +- src/tasks/tidy.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/configuration.ts b/src/configuration.ts index 6ab27f56..edf9a6d7 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -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}`, }; })); diff --git a/src/tasks/tidy.ts b/src/tasks/tidy.ts index 2c08166e..1759fac0 100644 --- a/src/tasks/tidy.ts +++ b/src/tasks/tidy.ts @@ -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),