From 28852449880dc81dc3ddfbb2e3896bfa78c85820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 3 Nov 2021 09:24:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20Ignor?= =?UTF-8?q?e=20approved=20issues=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue_automation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index facf1ade8..40a89ba60 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -110,8 +110,8 @@ jobs: }) const comment = comments.data.find(c => c.user.login === "github-actions[bot]" && c.body.includes(marker)); - if (!labels.includes("triage")) { - console.log("No label, deleting comment if needed"); + if (!labels.includes("triage") || labels.includes("approved")) { + console.log("Deleting comment if it exists..."); if (comment) { await github.rest.issues.deleteComment({ owner: context.repo.owner,