Skip to content

Commit

Permalink
Update filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup authored and Jojo-Schmitz committed Aug 29, 2024
1 parent 7cd91bd commit 69b26e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/issues_delete_spam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
const payload = context.payload;
const comment = payload.comment;
const commentBody = comment.body;
const isSpam = commentBody.includes('Download')
&& commentBody.includes('https://www.mediafire.com/file')
&& commentBody.includes('password: changeme')
&& commentBody.includes('In the installer menu, select "gcc."');
const isSpam = commentBody.includes('password: changeme')
&& commentBody.includes('gcc');
if (isSpam) {
console.log('Deleting spam comment');
await github.rest.issues.deleteComment({
Expand Down

0 comments on commit 69b26e7

Please sign in to comment.