From 6bddada8c2b36e254c333ae86a16731d9c2a8ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Jun 2022 10:12:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20Add?= =?UTF-8?q?=20task=20labeling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue_automation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 3e5b9e016..13830c66a 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -28,6 +28,11 @@ jobs: labels = labels.filter(label => label !== 'triage'); setLabels = true; } + if (context.payload.issue.title.match(/\[task\]/i)) { + labels.push('task'); + labels = labels.filter(label => label !== 'triage'); + setLabels = true; + } if (labels.length === 0) { labels.push('triage'); @@ -37,7 +42,7 @@ jobs: } case 'closed': { - if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement')) { + if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement') || labels.includes('task')) { labels.push('done'); setLabels = true; }