Skip to content

Commit 004e46f

Browse files
authored
Fix breaking change in workflow test
1 parent 5e5d515 commit 004e46f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pull-request-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
script: |
1616
// Get the existing comments.
17-
const {data: comments} = await github.issues.listComments({
17+
const {data: comments} = await github.rest.issues.listComments({
1818
owner: context.repo.owner,
1919
repo: context.repo.repo,
2020
issue_number: context.payload.number,
@@ -28,14 +28,14 @@ jobs:
2828
console.log('Not attempting to write comment on PR from fork');
2929
} else {
3030
if (botComment) {
31-
await github.issues.updateComment({
31+
await github.rest.issues.updateComment({
3232
owner: context.repo.owner,
3333
repo: context.repo.repo,
3434
comment_id: botComment.id,
3535
body: commentBody
3636
})
3737
} else {
38-
await github.issues.createComment({
38+
await github.rest.issues.createComment({
3939
owner: context.repo.owner,
4040
repo: context.repo.repo,
4141
issue_number: context.payload.number,

0 commit comments

Comments
 (0)