diff --git a/dist/index.js b/dist/index.js index c94d5f0..96666ab 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 diff --git a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache index d5ce7e8..fc975b0 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache and b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/index.js.cache b/node_modules/@vercel/ncc/dist/ncc/index.js.cache index 1b3370b..71de8dc 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/index.js.cache and b/node_modules/@vercel/ncc/dist/ncc/index.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache index 47deb9b..4549e2d 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache index 1c4c8e9..6b97df3 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache index 1d783d6..d06911b 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache differ diff --git a/src/main.ts b/src/main.ts index e90d3e1..c13b46b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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