Skip to content

Commit 560371d

Browse files
committed
Alter basic auth strategy
1 parent 672d8e5 commit 560371d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/open-user-pr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ const userName = process.env.GH_USERNAME;
1919
const reviewers = ["weswigham", "sandersn", "mhegazy"]
2020
const now = new Date();
2121
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`;
2323
runSequence([
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

3333
const gh = new Octokit();

0 commit comments

Comments
 (0)