mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
parent
d50cb17256
commit
e8c6c537de
1 changed files with 5 additions and 6 deletions
|
@ -26,7 +26,7 @@ jobs:
|
|||
with:
|
||||
script: |
|
||||
const commentId = context.payload.comment.id;
|
||||
await github.issues.deleteComment({
|
||||
await github.rest.issues.deleteComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: commentId
|
||||
|
@ -37,9 +37,8 @@ jobs:
|
|||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const userId = context.payload.comment.user.id;
|
||||
await github.users.block({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
user_id: userId
|
||||
const username = context.payload.comment.user.login;
|
||||
await github.rest.orgs.blockUser({
|
||||
org: context.repo.owner,
|
||||
username: username
|
||||
});
|
Loading…
Reference in a new issue