File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ jobs:
35
35
script : |
36
36
const prNumber = context.payload.pull_request.number;
37
37
const comment = "The CI failure for this job is normal. An admin must do the merge.";
38
- const { data: comments } = await github.issues.listComments({
38
+ const { data: comments } = await github.rest. issues.listComments({
39
39
owner: context.repo.owner,
40
40
repo: context.repo.repo,
41
41
issue_number: prNumber,
42
42
});
43
43
const existingComment = comments.find(c => c.body.includes(comment));
44
44
if (!existingComment) {
45
- await github.issues.createComment({
45
+ await github.rest. issues.createComment({
46
46
owner: context.repo.owner,
47
47
repo: context.repo.repo,
48
48
issue_number: prNumber,
@@ -70,14 +70,14 @@ jobs:
70
70
script : |
71
71
const prNumber = context.payload.pull_request.number;
72
72
const comment = "The sl-require-admin-action label cannot be removed once it has been added.";
73
- const { data: comments } = await github.issues.listComments({
73
+ const { data: comments } = await github.rest. issues.listComments({
74
74
owner: context.repo.owner,
75
75
repo: context.repo.repo,
76
76
issue_number: prNumber,
77
77
});
78
78
const existingComment = comments.find(c => c.body.includes(comment));
79
79
if (!existingComment) {
80
- await github.issues.createComment({
80
+ await github.rest. issues.createComment({
81
81
owner: context.repo.owner,
82
82
repo: context.repo.repo,
83
83
issue_number: prNumber,
You can’t perform that action at this time.
0 commit comments