Set User email and Name
This commit is contained in:
parent
38f409e8ce
commit
af8aa50f6b
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -25754,6 +25754,10 @@ async function main(sourceRepo, targetRepo, dryRun) {
|
||||
console.log(`DEBUG - sourceRepoCloneCommand: ${sourceRepoCloneCommand}`);
|
||||
(0, child_process_1.execSync)(sourceRepoCloneCommand);
|
||||
(0, child_process_1.execSync)(`git clone https://${(0, types_1.repoString)(targetRepo)} ${TARGET_DIR}`);
|
||||
// Seems like setting `--author` on `git commit` is not sufficient - still need to set `user` as well (I guess those
|
||||
// are the difference between `comitted by` and `written by`?)
|
||||
(0, child_process_1.execSync)(`git config --global user.email "commit-report-sync-bot@scubbo.org"`, { cwd: TARGET_DIR });
|
||||
(0, child_process_1.execSync)(`git config --global user.name "Commit Report Sync Bot"`, { cwd: TARGET_DIR });
|
||||
// Logic:
|
||||
// * Go back as far in source commit history as the given number of commits
|
||||
// * For each commit, check if it is recorded in the target repo
|
||||
|
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
Binary file not shown.
@ -28,6 +28,10 @@ export async function main(sourceRepo: Repo, targetRepo: Repo, dryRun: boolean)
|
||||
console.log(`DEBUG - sourceRepoCloneCommand: ${sourceRepoCloneCommand}`);
|
||||
execSync(sourceRepoCloneCommand);
|
||||
execSync(`git clone https://${repoString(targetRepo)} ${TARGET_DIR}`);
|
||||
// Seems like setting `--author` on `git commit` is not sufficient - still need to set `user` as well (I guess those
|
||||
// are the difference between `comitted by` and `written by`?)
|
||||
execSync(`git config --global user.email "commit-report-sync-bot@scubbo.org"`, { cwd: TARGET_DIR });
|
||||
execSync(`git config --global user.name "Commit Report Sync Bot"`, { cwd: TARGET_DIR });
|
||||
|
||||
// Logic:
|
||||
// * Go back as far in source commit history as the given number of commits
|
||||
@ -49,7 +53,6 @@ export async function main(sourceRepo: Repo, targetRepo: Repo, dryRun: boolean)
|
||||
// only been alive so many years - there's a hard limit on the rate of code I could possibly have generated, which
|
||||
// is small compared to, y'know, _companies_. And I don't see organizations of that size caring about GitHub
|
||||
// contribution history at whole-org scale - and if they do, it'd be proportionally simple for them to implement it.
|
||||
|
||||
const sourceCommitHistory = buildSourceCommitHistory(SOURCE_DIR, 10);
|
||||
|
||||
// Calling `doSomethingTo(sourceCommitHistory.reverse()); doSomethingElseTo(sourceCommitHistory.reverse());` results
|
||||
|
Loading…
x
Reference in New Issue
Block a user