👷‍♂️ Ignore approved issues too

This commit is contained in:
Gina Häußge committed 2021-11-03 09:24:28 +01:00
1 parent d60c5a631a
commit 2885244988
1 file changed
+2 -2
+2 -2
View File
@@ -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,