Set author for commits

This commit is contained in:
Jack Jackson 2025-03-01 22:53:10 -08:00
parent 89f8bc53fe
commit 38f409e8ce
7 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -25938,7 +25938,7 @@ function createRepresentativeCommit(sourceRepo, sourceCommit) {
});
try {
// Do _not_ arbitrarily remove the `hash` - it's used for signalling identity in `main()`
const args = `"${sourceRepo.owner}/${sourceRepo.name}: ${sourceCommit.message} - ${sourceCommit.hash}" --date="${(0, date_fns_1.format)(sourceCommit.date, 'yyyy-MM-dd HH:mm:ss')}"`;
const args = `"${sourceRepo.owner}/${sourceRepo.name}: ${sourceCommit.message} - ${sourceCommit.hash}" --date="${(0, date_fns_1.format)(sourceCommit.date, 'yyyy-MM-dd HH:mm:ss')}" --author="${sourceCommit.author_name} <${sourceCommit.author_email}>"`;
console.log(`About to commit with args ${args}`);
// https://github.com/Shpota/github-activity-generator/blob/main/contribute.py#L63
// "%Y-%m-%d %H:%M:%S"

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -232,7 +232,7 @@ function createRepresentativeCommit(sourceRepo: Repo,sourceCommit: Commit) {
try {
// Do _not_ arbitrarily remove the `hash` - it's used for signalling identity in `main()`
const args = `"${sourceRepo.owner}/${sourceRepo.name}: ${sourceCommit.message} - ${sourceCommit.hash}" --date="${format(sourceCommit.date, 'yyyy-MM-dd HH:mm:ss')}"`;
const args = `"${sourceRepo.owner}/${sourceRepo.name}: ${sourceCommit.message} - ${sourceCommit.hash}" --date="${format(sourceCommit.date, 'yyyy-MM-dd HH:mm:ss')}" --author="${sourceCommit.author_name} <${sourceCommit.author_email}>"`;
console.log(`About to commit with args ${args}`);
// https://github.com/Shpota/github-activity-generator/blob/main/contribute.py#L63
// "%Y-%m-%d %H:%M:%S"