@@ -46,13 +46,18 @@ instance FromJSON Subject where
4646        <*>  o .:  " type" 
4747
4848data  NotificationReason 
49-     =  AssignReason 
49+     =  ApprovalRequestedReason 
50+     | AssignReason 
5051    | AuthorReason 
5152    | CommentReason 
53+     | CiActivityReason 
5254    | InvitationReason 
5355    | ManualReason 
56+     | MemberFeatureRequestedReason 
5457    | MentionReason 
5558    | ReviewRequestedReason 
59+     | SecurityAlertReason 
60+     | SecurityAdvisoryCreditReason 
5661    | StateChangeReason 
5762    | SubscribedReason 
5863    | TeamMentionReason 
@@ -63,17 +68,22 @@ instance Binary NotificationReason
6368
6469instance  FromJSON  NotificationReason  where 
6570    parseJSON =  withText " NotificationReason" $  \ t ->  case  T. toLower t of 
66-         " assign" ->  pure  AssignReason 
67-         " author" ->  pure  AuthorReason 
68-         " comment" ->  pure  CommentReason 
69-         " invitation" ->  pure  InvitationReason 
70-         " manual" ->  pure  ManualReason 
71-         " mention" ->  pure  MentionReason 
72-         " review_requested" ->  pure  ReviewRequestedReason 
73-         " state_change" ->  pure  StateChangeReason 
74-         " subscribed" ->  pure  SubscribedReason 
75-         " team_mention" ->  pure  TeamMentionReason 
76-         _                  ->  fail  $  " Unknown NotificationReason " ++  show  t
71+       " approval_requested" ->  pure  ApprovalRequestedReason 
72+       " assign" ->  pure  AssignReason 
73+       " author" ->  pure  AuthorReason 
74+       " comment" ->  pure  CommentReason 
75+       " ci_activity" ->  pure  CiActivityReason 
76+       " invitation" ->  pure  InvitationReason 
77+       " manual" ->  pure  ManualReason 
78+       " member_feature_requested" ->  pure  MemberFeatureRequestedReason 
79+       " mention" ->  pure  MentionReason 
80+       " review_requested" ->  pure  ReviewRequestedReason 
81+       " security_alert" ->  pure  SecurityAlertReason 
82+       " security_advisory_credit" ->  pure  SecurityAdvisoryCreditReason 
83+       " state_change" ->  pure  StateChangeReason 
84+       " subscribed" ->  pure  SubscribedReason 
85+       " team_mention" ->  pure  TeamMentionReason 
86+       _                          ->  fail  $  " Unknown NotificationReason " ++  show  t
7787
7888data  Notification  =  Notification 
7989    --  XXX: The notification id field type IS in fact string. Not sure why gh
0 commit comments