Skip to content

Commit

Permalink
Fix a crash when a commit doesn't have a GitHub author login (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts authored May 5, 2019
1 parent 8c2fa30 commit a2724be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loading/internal/pull-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function updateCommentsAndReviews(
),
githubApi.loadCommits(pr).then(commits =>
commits.map(commit => ({
authorLogin: commit.author.login,
authorLogin: commit.author ? commit.author.login : "",
createdAt: commit.commit.author.date
}))
)
Expand Down

0 comments on commit a2724be

Please sign in to comment.