From 3ddec4816ab41b2d807c4767d245e46f605b3869 Mon Sep 17 00:00:00 2001 From: jvmncs <7891333+jvmncs@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:47:38 -0400 Subject: [PATCH] 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 --- .github/workflows/delete_comments.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/delete_comments.yml b/.github/workflows/delete_comments.yml index 63013d3c02..8c1411cbe9 100644 --- a/.github/workflows/delete_comments.yml +++ b/.github/workflows/delete_comments.yml @@ -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 - });