File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/// <reference lib="esnext.asynciterable" />
2+ /// <reference lib="es2015.promise" />
23// Must reference esnext.asynciterable lib, since octokit uses AsyncIterable internally
34import Octokit = require( "@octokit/rest" ) ;
45import { runSequence } from "./run-sequence" ;
@@ -29,7 +30,7 @@ gh.authenticate({
2930 token : process . argv [ 2 ]
3031} ) ;
3132gh . pulls . create ( {
32- owner : process . env . TARGET_FORK ,
33+ owner : process . env . TARGET_FORK ! ,
3334 repo : "TypeScript" ,
3435 maintainer_can_modify : true ,
3536 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(" ")}`,
4546 console . log ( `Pull request ${ num } created.` ) ;
4647 if ( ! process . env . SOURCE_ISSUE ) {
4748 await gh . pulls . createReviewRequest ( {
48- owner : process . env . TARGET_FORK ,
49+ owner : process . env . TARGET_FORK ! ,
4950 repo : "TypeScript" ,
50- number : num ,
51+ pull_number : num ,
5152 reviewers,
5253 } ) ;
5354 }
You can’t perform that action at this time.
0 commit comments