mirror of
https://github.com/pomber/git-history.git
synced 2024-12-01 16:27:14 +03:00
Fix missing author
This commit is contained in:
parent
d2131db616
commit
ac307d2074
@ -26,8 +26,10 @@ export async function getHistory(repo, sha, path, top = 10) {
|
||||
sha: commit.sha,
|
||||
date: new Date(commit.commit.author.date),
|
||||
author: {
|
||||
login: commit.author.login,
|
||||
avatar: commit.author.avatar_url
|
||||
login: commit.author ? commit.author.login : commit.commit.author.name,
|
||||
avatar: commit.author
|
||||
? commit.author.avatar_url
|
||||
: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
|
||||
},
|
||||
commitUrl: commit.html_url,
|
||||
message: commit.commit.message
|
||||
|
Loading…
Reference in New Issue
Block a user