Update request-pr-review script to latest version of octokit (#39031)

This commit is contained in:
Ron Buckton 2020-06-11 18:04:21 -07:00 committed by GitHub
parent 45e6805e66
commit b2afa7b657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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,