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: ...@@ -34,7 +34,7 @@ jobs:
console.log('PR has existing milestone, skipping.'); console.log('PR has existing milestone, skipping.');
return; return;
} }
milestones = await github.issues.listMilestones({ milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
state: 'open', state: 'open',
...@@ -45,7 +45,7 @@ jobs: ...@@ -45,7 +45,7 @@ jobs:
console.log('There are no milestones, skipping.'); console.log('There are no milestones, skipping.');
return; return;
} }
await github.issues.update({ await github.rest.issues.update({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
issue_number: context.payload.pull_request.number, 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