Fix null ref when receiving invalid author

This commit is contained in:
Martin Fournier 2022-03-07 17:28:11 -05:00
parent 1e55715c6b
commit f0a2043dc2

@ -33,10 +33,10 @@ class MergeChangelog {
sha: entry.sha,
url: entry.html_url,
user: {
id: entry.author.id,
login: entry.author.login,
avatar: entry.author.avatar_url,
url: entry.author.html_url,
id: entry.author?.id,
login: entry.author?.login,
avatar: entry.author?.avatar_url,
url: entry.author?.html_url,
},
commit_date: entry.commit.committer.date,
message: entry.commit.message,