File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ /// <reference lib="esnext.asynciterable" />
2+ // Must reference esnext.asynciterable lib, since octokit uses AsyncIterable internally
13import cp = require( "child_process" ) ;
24import Octokit = require( "@octokit/rest" ) ;
35
@@ -35,7 +37,7 @@ gh.authenticate({
3537 type : "token" ,
3638 token : process . argv [ 2 ]
3739} ) ;
38- gh . pullRequests . create ( {
40+ gh . pulls . create ( {
3941 owner : process . env . TARGET_FORK ,
4042 repo : "TypeScript" ,
4143 maintainer_can_modify : true ,
@@ -50,7 +52,7 @@ cc ${reviewers.map(r => "@" + r).join(" ")}`,
5052} ) . then ( r => {
5153 const num = r . data . number ;
5254 console . log ( `Pull request ${ num } created.` ) ;
53- return gh . pullRequests . createReviewRequest ( {
55+ return gh . pulls . createReviewRequest ( {
5456 owner : process . env . TARGET_FORK ,
5557 repo : "TypeScript" ,
5658 number : num ,
You can’t perform that action at this time.
0 commit comments