@@ -19,15 +19,15 @@ const userName = process.env.GH_USERNAME;
1919const reviewers = [ "weswigham" , "sandersn" , "mhegazy" ]
2020const now = new Date ( ) ;
2121const branchName = `user-update-${ now . getFullYear ( ) } ${ padNum ( now . getMonth ( ) ) } ${ padNum ( now . getDay ( ) ) } ` ;
22- const remoteUrl = `https://github.com/${ userName } /TypeScript.git` ;
22+ const remoteUrl = `https://${ process . argv [ 2 ] } @ github.com/${ userName } /TypeScript.git` ;
2323runSequence ( [
2424 [ "git" , [ "checkout" , "." ] ] , // reset any changes
2525 [ "node" , [ "./node_modules/jake/bin/cli.js" , "baseline-accept" ] ] , // accept baselines
2626 [ "git" , [ "checkout" , "-b" , branchName ] ] , // create a branch
2727 [ "git" , [ "add" , "." ] ] , // Add all changes
2828 [ "git" , [ "commit" , "-m" , `"Update user baselines"` ] ] , // Commit all changes
2929 [ "git" , [ "remote" , "add" , "fork" , remoteUrl ] ] , // Add the remote fork
30- [ "git" , [ "-c" , `http.extraheader="AUTHORIZATION: basic ${ process . argv [ 2 ] } "` , " push", "--set-upstream" , "fork" , branchName ] ] // push the branch
30+ [ "git" , [ "push" , "--set-upstream" , "fork" , branchName ] ] // push the branch
3131] ) ;
3232
3333const gh = new Octokit ( ) ;
0 commit comments