Skip to content

Commit

Permalink
Update filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Sep 2, 2024
1 parent 5a2fb4f commit b2633d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/issues_delete_spam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
const comment = payload.comment;
const commentBody = comment.body;
const isSpam = commentBody.includes('password: changeme')
&& commentBody.includes('gcc');
|| commentBody.includes('mediafire.');

This comment has been minimized.

Copy link
@Jojo-Schmitz

Jojo-Schmitz Sep 2, 2024

Contributor

Syntax error, that ; is too much

This comment has been minimized.

Copy link
@Jojo-Schmitz

Jojo-Schmitz Sep 2, 2024

Contributor

see #24376

|| commentBody.includes('fix your trouble try');
if (isSpam) {
console.log('Deleting spam comment');
await github.rest.issues.deleteComment({
Expand Down

0 comments on commit b2633d7

Please sign in to comment.