Skip to content

Commit 4986ca6

Browse files
authored
Merge pull request #329 from serokell/master
Add webhook installation events
2 parents ed23f10 + 445f297 commit 4986ca6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GitHub/Data/Webhooks.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ data RepoWebhookEvent
3838
| WebhookDeploymentStatusEvent
3939
| WebhookForkEvent
4040
| WebhookGollumEvent
41+
| WebhookInstallationEvent
42+
| WebhookInstallationRepositoriesEvent
4143
| WebhookIssueCommentEvent
4244
| WebhookIssuesEvent
4345
| WebhookMemberEvent
@@ -110,6 +112,8 @@ instance FromJSON RepoWebhookEvent where
110112
parseJSON (String "deployment_status") = pure WebhookDeploymentStatusEvent
111113
parseJSON (String "fork") = pure WebhookForkEvent
112114
parseJSON (String "gollum") = pure WebhookGollumEvent
115+
parseJSON (String "installation") = pure WebhookInstallationEvent
116+
parseJSON (String "installation_repositories") = pure WebhookInstallationRepositoriesEvent
113117
parseJSON (String "issue_comment") = pure WebhookIssueCommentEvent
114118
parseJSON (String "issues") = pure WebhookIssuesEvent
115119
parseJSON (String "member") = pure WebhookMemberEvent
@@ -134,6 +138,8 @@ instance ToJSON RepoWebhookEvent where
134138
toJSON WebhookDeploymentStatusEvent = String "deployment_status"
135139
toJSON WebhookForkEvent = String "fork"
136140
toJSON WebhookGollumEvent = String "gollum"
141+
toJSON WebhookInstallationEvent = String "installation"
142+
toJSON WebhookInstallationRepositoriesEvent = String "installation_repositories"
137143
toJSON WebhookIssueCommentEvent = String "issue_comment"
138144
toJSON WebhookIssuesEvent = String "issues"
139145
toJSON WebhookMemberEvent = String "member"

0 commit comments

Comments
 (0)