Skip to content

Commit d412c2a

Browse files
committed
chore(ci): correct github-script API calls
Since V5 of github-script the Octokit context available via `github` no longer has REST methods directly on it, they were moved to `github.rest.*` instead. Update the references in delete-comments.yml job to match. Signed-off-by: Dominic Evans <[email protected]>
1 parent 85f589e commit d412c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/delete-comments.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
script: |
2828
const commentId = context.payload.comment.id;
29-
await github.issues.deleteComment({
29+
await github.rest.issues.deleteComment({
3030
owner: context.repo.owner,
3131
repo: context.repo.repo,
3232
comment_id: commentId
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
script: |
4040
const userId = context.payload.comment.user.id;
41-
await github.users.block({
41+
await github.rest.users.block({
4242
owner: context.repo.owner,
4343
repo: context.repo.repo,
4444
user_id: userId

0 commit comments

Comments
 (0)