Merge pull request #1210 from mikepenz/fix/commit_mode_author

Fix author for commit mode was not username
This commit is contained in:
Mike Penz
2023-08-18 20:06:52 +02:00
committed by GitHub
3 changed files with 5 additions and 5 deletions
Generated Vendored
+2 -2
View File
@@ -282,9 +282,9 @@ class Commits {
sha: commit.sha || '',
summary: commit.commit.message.split('\n')[0],
message: commit.commit.message,
author: ((_a = commit.commit.author) === null || _a === void 0 ? void 0 : _a.name) || '',
author: ((_a = commit.author) === null || _a === void 0 ? void 0 : _a.login) || '',
authorDate: (0, moment_1.default)((_b = commit.commit.author) === null || _b === void 0 ? void 0 : _b.date),
committer: ((_c = commit.commit.committer) === null || _c === void 0 ? void 0 : _c.name) || '',
committer: ((_c = commit.committer) === null || _c === void 0 ? void 0 : _c.login) || '',
commitDate: (0, moment_1.default)((_d = commit.commit.committer) === null || _d === void 0 ? void 0 : _d.date),
prNumber: undefined
});
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -92,9 +92,9 @@ export class Commits {
sha: commit.sha || '',
summary: commit.commit.message.split('\n')[0],
message: commit.commit.message,
author: commit.commit.author?.name || '',
author: commit.author?.login || '',
authorDate: moment(commit.commit.author?.date),
committer: commit.commit.committer?.name || '',
committer: commit.committer?.login || '',
commitDate: moment(commit.commit.committer?.date),
prNumber: undefined
}))