File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 28
28
node test/util/report.js >> coverage.log || true
29
29
30
30
- name : Comment on PR
31
- uses : actions/github-script@v4.1
31
+ uses : actions/github-script@v5
32
32
with :
33
33
github-token : ${{secrets.GITHUB_TOKEN}}
34
34
script : |
39
39
return
40
40
}
41
41
// Get the existing comments.
42
- const {data: comments} = await github.issues.listComments({
42
+ const {data: comments} = await github.rest. issues.listComments({
43
43
owner: context.repo.owner,
44
44
repo: context.repo.repo,
45
45
issue_number: context.payload.number,
@@ -48,14 +48,14 @@ jobs:
48
48
const botComment = comments.find(comment => comment.user.id === 41898282)
49
49
50
50
if (botComment) {
51
- await github.issues.updateComment({
51
+ await github.rest. issues.updateComment({
52
52
owner: context.repo.owner,
53
53
repo: context.repo.repo,
54
54
comment_id: botComment.id,
55
55
body: commentBody
56
56
})
57
57
} else {
58
- await github.issues.createComment({
58
+ await github.rest. issues.createComment({
59
59
owner: context.repo.owner,
60
60
repo: context.repo.repo,
61
61
issue_number: context.payload.number,
You can’t perform that action at this time.
0 commit comments