Skip to content

Commit

Permalink
Remove block step from delete comments workflow (#16910)
Browse files Browse the repository at this point in the history
The block step wasn't working, and it also appears that most of these
spam comments are coming from compromised accounts, so I think just
deleting the comments is okay for now.

Release Notes:

- N/A
  • Loading branch information
jvmncs authored Aug 26, 2024
1 parent e2635a6 commit 3ddec48
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/delete_comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,3 @@ jobs:
repo: context.repo.repo,
comment_id: commentId
});
- name: Block user if comment contains any of the specific strings
if: steps.check_comment.outputs.result == 'true'
uses: actions/github-script@v7
with:
script: |
const userId = context.payload.comment.user.id;
await github.rest.users.block({
owner: context.repo.owner,
repo: context.repo.repo,
user_id: userId
});

0 comments on commit 3ddec48

Please sign in to comment.