Updater: fix potentially erroring in edge case
This commit is contained in:
parent
84adcc7002
commit
6eb2207040
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ async function calculateGitChanges() {
|
|||
return data.commits.map((c: any) => ({
|
||||
// github api only sends the long sha
|
||||
hash: c.sha.slice(0, 7),
|
||||
author: c.author.login,
|
||||
author: c.author?.login ?? c.commit?.author?.name ?? "Unknown Author",
|
||||
message: c.commit.message.split("\n")[0]
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue