@@ -19,15 +19,15 @@ const userName = process.env.GH_USERNAME;
19
19
const reviewers = [ "weswigham" , "sandersn" , "mhegazy" ]
20
20
const now = new Date ( ) ;
21
21
const 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` ;
23
23
runSequence ( [
24
24
[ "git" , [ "checkout" , "." ] ] , // reset any changes
25
25
[ "node" , [ "./node_modules/jake/bin/cli.js" , "baseline-accept" ] ] , // accept baselines
26
26
[ "git" , [ "checkout" , "-b" , branchName ] ] , // create a branch
27
27
[ "git" , [ "add" , "." ] ] , // Add all changes
28
28
[ "git" , [ "commit" , "-m" , `"Update user baselines"` ] ] , // Commit all changes
29
29
[ "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
31
31
] ) ;
32
32
33
33
const gh = new Octokit ( ) ;
0 commit comments