Skip to content

Commit 7edcc03

Browse files
bobcallawayAdam Shamblin
authored andcommitted
use v6 api calls (sigstore#1511)
Signed-off-by: Bob Callaway <bcallaway@google.com>
1 parent 147b66f commit 7edcc03

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/milestone.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ jobs:
3030
console.log('PR was not merged, skipping.');
3131
return;
3232
}
33-
3433
if (!!context.payload.pull_request.milestone) {
3534
console.log('PR has existing milestone, skipping.');
3635
return;
3736
}
38-
39-
milestones = await github.issues.listMilestones({
37+
milestones = await github.rest.issues.listMilestones({
4038
owner: context.repo.owner,
4139
repo: context.repo.repo,
4240
state: 'open',
@@ -47,8 +45,7 @@ jobs:
4745
console.log('There are no milestones, skipping.');
4846
return;
4947
}
50-
51-
await github.issues.update({
48+
await github.rest.issues.update({
5249
owner: context.repo.owner,
5350
repo: context.repo.repo,
5451
issue_number: context.payload.pull_request.number,

0 commit comments

Comments
 (0)