Skip to content

Commit 59b2bb4

Browse files
author
Tom Sydney Kerckhove
committed
Fix the parsing of author and committer for commits
1 parent e42e789 commit 59b2bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub/Data/GitData.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ instance FromJSON Commit where
208208
<*> o .: "parents"
209209
<*> o .: "url"
210210
<*> o .: "commit"
211-
<*> o .:? "committer"
212-
<*> o .:? "author"
211+
<*> (o .:? "committer" <|> pure Nothing)
212+
<*> (o .:? "author" <|> pure Nothing)
213213
<*> o .:? "files" .!= V.empty
214214
<*> o .:? "stats"
215215

0 commit comments

Comments
 (0)