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,