Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da9ec30

Browse files
author
César López-Natarén
committed
Add the missing actions
1 parent c9af671 commit da9ec30

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Github/Data.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ instance FromJSON PullRequestEventType where
416416
parseJSON (String "closed") = pure PullRequestClosed
417417
parseJSON (String "synchronize") = pure PullRequestSynchronized
418418
parseJSON (String "reopened") = pure PullRequestReopened
419+
parseJSON (String "assigned") = pure PullRequestAssigned
420+
parseJSON (String "unassigned") = pure PullRequestUnassigned
421+
parseJSON (String "labeled") = pure PullRequestLabeled
422+
parseJSON (String "unlabeled") = pure PullRequestUnlabeled
419423
parseJSON _ = fail "Could not build a PullRequestEventType"
420424

421425
instance FromJSON PingEvent where

Github/Data/Definitions.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,10 @@ data PullRequestEventType =
532532
| PullRequestClosed
533533
| PullRequestSynchronized
534534
| PullRequestReopened
535+
| PullRequestAssigned
536+
| PullRequestUnassigned
537+
| PullRequestLabeled
538+
| PullRequestUnlabeled
535539
deriving (Show, Data, Typeable, Eq, Ord)
536540

537541
data PingEvent = PingEvent {

0 commit comments

Comments
 (0)