Skip to content

Commit b2afa7b

Browse files
authored
Update request-pr-review script to latest version of octokit (#39031)
1 parent 45e6805 commit b2afa7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"node": ">=4.2.0"
3030
},
3131
"devDependencies": {
32-
"@octokit/rest": "17.11.2",
32+
"@octokit/rest": "latest",
3333
"@types/browserify": "latest",
3434
"@types/chai": "latest",
3535
"@types/convert-source-map": "latest",

scripts/request-pr-review.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ main().catch(console.error);
4242

4343
async function main() {
4444
const gh = new Octokit({ auth: options.token });
45-
const response = await gh.pulls.createReviewRequest({
45+
const response = await gh.pulls.requestReviewers({
4646
owner: options.owner,
4747
repo: options.repo,
4848
pull_number,

0 commit comments

Comments
 (0)