👷♂️ Ignore approved issues too
This commit is contained in:
1 parent
d60c5a631a
commit
2885244988
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user