Skip to content

Commit 3b24f41

Browse files
magtheandreasabel
authored andcommitted
Make the subject URL optional
This goes against the documentation at https://docs.github.com/en/rest/activity/notifications but it seems to be required in order to handle certain types of notifications.
1 parent c62608c commit 3b24f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub/Data/Activities.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ instance FromJSON RepoStarred where
2626

2727
data Subject = Subject
2828
{ subjectTitle :: !Text
29-
, subjectURL :: !URL
29+
, subjectURL :: !(Maybe URL)
3030
, subjectLatestCommentURL :: !(Maybe URL)
3131
-- https://developer.github.com/v3/activity/notifications/ doesn't indicate
3232
-- what the possible values for this field are.

0 commit comments

Comments
 (0)