Skip to content

Commit 99b5767

Browse files
fix rest command
1 parent d5914a2 commit 99b5767

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/silabs-require-admin-action-check.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
script: |
3636
const prNumber = context.payload.pull_request.number;
3737
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({
3939
owner: context.repo.owner,
4040
repo: context.repo.repo,
4141
issue_number: prNumber,
4242
});
4343
const existingComment = comments.find(c => c.body.includes(comment));
4444
if (!existingComment) {
45-
await github.issues.createComment({
45+
await github.rest.issues.createComment({
4646
owner: context.repo.owner,
4747
repo: context.repo.repo,
4848
issue_number: prNumber,
@@ -70,14 +70,14 @@ jobs:
7070
script: |
7171
const prNumber = context.payload.pull_request.number;
7272
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({
7474
owner: context.repo.owner,
7575
repo: context.repo.repo,
7676
issue_number: prNumber,
7777
});
7878
const existingComment = comments.find(c => c.body.includes(comment));
7979
if (!existingComment) {
80-
await github.issues.createComment({
80+
await github.rest.issues.createComment({
8181
owner: context.repo.owner,
8282
repo: context.repo.repo,
8383
issue_number: prNumber,

0 commit comments

Comments
 (0)