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
1
3
import cp = require( "child_process" ) ;
2
4
import Octokit = require( "@octokit/rest" ) ;
3
5
@@ -35,7 +37,7 @@ gh.authenticate({
35
37
type : "token" ,
36
38
token : process . argv [ 2 ]
37
39
} ) ;
38
- gh . pullRequests . create ( {
40
+ gh . pulls . create ( {
39
41
owner : process . env . TARGET_FORK ,
40
42
repo : "TypeScript" ,
41
43
maintainer_can_modify : true ,
@@ -50,7 +52,7 @@ cc ${reviewers.map(r => "@" + r).join(" ")}`,
50
52
} ) . then ( r => {
51
53
const num = r . data . number ;
52
54
console . log ( `Pull request ${ num } created.` ) ;
53
- return gh . pullRequests . createReviewRequest ( {
55
+ return gh . pulls . createReviewRequest ( {
54
56
owner : process . env . TARGET_FORK ,
55
57
repo : "TypeScript" ,
56
58
number : num ,
You can’t perform that action at this time.
0 commit comments