Remove block step from delete comments workflow (#16910)
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
This commit is contained in:
parent
e2635a685e
commit
3ddec4816a
1 changed files with 0 additions and 12 deletions
12
.github/workflows/delete_comments.yml
vendored
12
.github/workflows/delete_comments.yml
vendored
|
@ -31,15 +31,3 @@ jobs:
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
comment_id: commentId
|
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
|
|
||||||
});
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue