Skip to content

Commit

Permalink
update API calls to v5 (#591)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
  • Loading branch information
bobcallaway authored Jan 8, 2022
1 parent f4b81f7 commit 97f2f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
console.log('PR has existing milestone, skipping.');
return;
}
milestones = await github.issues.listMilestones({
milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
Expand All @@ -45,7 +45,7 @@ jobs:
console.log('There are no milestones, skipping.');
return;
}
await github.issues.update({
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
Expand Down

0 comments on commit 97f2f39

Please sign in to comment.