Skip to content

Commit

Permalink
Merge pull request #1328 from mikepenz/fix/1327
Browse files Browse the repository at this point in the history
Fallback to alternative author value if main commit author login is not available
  • Loading branch information
mikepenz committed Apr 10, 2024
2 parents 94250de + c326a5b commit 5be14ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/repositories/GithubRepository.ts
Expand Up @@ -59,7 +59,7 @@ export class GithubRepository extends BaseRepository {
sha: commit.sha || '',
summary: commit.commit.message.split('\n')[0],
message: commit.commit.message,
author: commit.author?.login || '',
author: commit.author?.login || commit.commit.author?.name || '',
authorDate: moment(commit.commit.author?.date),
committer: commit.committer?.login || '',
commitDate: moment(commit.commit.committer?.date),
Expand Down

0 comments on commit 5be14ad

Please sign in to comment.