From e902d705bf66e07f70a9c34f9f13160c5db5982f Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Thu, 17 Jan 2019 14:33:01 +0100 Subject: [PATCH] fix: do not add issues to report from backlog --- src/tasks/tidy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tasks/tidy.ts b/src/tasks/tidy.ts index aa366817..4f0bac20 100644 --- a/src/tasks/tidy.ts +++ b/src/tasks/tidy.ts @@ -103,6 +103,11 @@ export async function tidyOpenIssuesWithoutMeetingLabel(api: Api): Promise logger.info(`Filtered ${openIssuesWithoutMeetingLabel.length} open issue(s) without label 'meeting'.`); await asyncPool(5, openIssuesWithoutMeetingLabel, async (issue) => { + if (issue.milestone !== null && issue.milestone.title === 'Backlog') { + logger.info(`Skipping issue "${issue.title}" because it is in backlog.`); + return; + } + return api.createNote( issue.project_id, issue.iid,