Skip to content

Commit

Permalink
Update request-pr-review script to latest version of octokit (#39031)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jun 12, 2020
1 parent 45e6805 commit b2afa7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"node": ">=4.2.0"
},
"devDependencies": {
"@octokit/rest": "17.11.2",
"@octokit/rest": "latest",
"@types/browserify": "latest",
"@types/chai": "latest",
"@types/convert-source-map": "latest",
Expand Down
2 changes: 1 addition & 1 deletion scripts/request-pr-review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ main().catch(console.error);

async function main() {
const gh = new Octokit({ auth: options.token });
const response = await gh.pulls.createReviewRequest({
const response = await gh.pulls.requestReviewers({
owner: options.owner,
repo: options.repo,
pull_number,
Expand Down

0 comments on commit b2afa7b

Please sign in to comment.