Skip to content

Commit

Permalink
- fallback to commit.commit author if commit author does not has a re…
Browse files Browse the repository at this point in the history
…sult

  - FIX #1327
  • Loading branch information
mikepenz authored Apr 10, 2024
1 parent f8d971b commit 9784d5c
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
Original file line number Diff line number Diff line change
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 9784d5c

Please sign in to comment.