File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference lib="esnext.asynciterable" />
2
+ /// <reference lib="es2015.promise" />
2
3
// Must reference esnext.asynciterable lib, since octokit uses AsyncIterable internally
3
4
import Octokit = require( "@octokit/rest" ) ;
4
5
import { runSequence } from "./run-sequence" ;
@@ -29,7 +30,7 @@ gh.authenticate({
29
30
token : process . argv [ 2 ]
30
31
} ) ;
31
32
gh . pulls . create ( {
32
- owner : process . env . TARGET_FORK ,
33
+ owner : process . env . TARGET_FORK ! ,
33
34
repo : "TypeScript" ,
34
35
maintainer_can_modify : true ,
35
36
title : `🤖 User test baselines have changed` + ( process . env . TARGET_BRANCH ? ` for ${ process . env . TARGET_BRANCH } ` : "" ) ,
@@ -45,9 +46,9 @@ cc ${reviewers.map(r => "@" + r).join(" ")}`,
45
46
console . log ( `Pull request ${ num } created.` ) ;
46
47
if ( ! process . env . SOURCE_ISSUE ) {
47
48
await gh . pulls . createReviewRequest ( {
48
- owner : process . env . TARGET_FORK ,
49
+ owner : process . env . TARGET_FORK ! ,
49
50
repo : "TypeScript" ,
50
- number : num ,
51
+ pull_number : num ,
51
52
reviewers,
52
53
} ) ;
53
54
}
You can’t perform that action at this time.
0 commit comments