Skip to content
Snippets Groups Projects
Unverified Commit 97f2f392 authored by Bob Callaway's avatar Bob Callaway Committed by GitHub
Browse files

update API calls to v5 (#591)

parent f4b81f76
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment