Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Relax comment restrictions in delete_comments action (#16899)

jvmncseb0a01e9cb7a
diff --git a/.github/workflows/delete_comments.yml b/.github/workflows/delete_comments.yml
index c6f12e2026d..63013d3c02c 100644
--- a/.github/workflows/delete_comments.yml
+++ b/.github/workflows/delete_comments.yml
@@ -17,7 +17,7 @@ jobs:
with:
script: |
const comment = context.payload.comment.body;
- const triggerStrings = ['www.mediafire.com', 'Download', 'changeme'];
+ const triggerStrings = ['www.mediafire.com'];
return triggerStrings.some(triggerString => comment.includes(triggerString));
- name: Delete comment if it contains any of the specific strings
@@ -37,8 +37,9 @@ jobs:
uses: actions/github-script@v7
with:
script: |
- const username = context.payload.comment.user.login;
- await github.rest.orgs.blockUser({
- org: context.repo.owner,
- username: username
+ const userId = context.payload.comment.user.id;
+ await github.rest.users.block({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ user_id: userId
});