@@ -35,19 +35,21 @@ data RepoWebhookEvent
3535 = WebhookWildcardEvent
3636 | WebhookCheckRunEvent
3737 | WebhookCheckSuiteEvent
38+ | WebhookCodeScanningAlert
3839 | WebhookCommitCommentEvent
3940 | WebhookContentReferenceEvent
4041 | WebhookCreateEvent
4142 | WebhookDeleteEvent
4243 | WebhookDeployKeyEvent
4344 | WebhookDeploymentEvent
4445 | WebhookDeploymentStatusEvent
46+ | WebhookDiscussion
47+ | WebhookDiscussionComment
4548 | WebhookDownloadEvent
4649 | WebhookFollowEvent
4750 | WebhookForkEvent
48- | WebhookForkApplyEvent
49- | WebhookGitHubAppAuthorizationEvent
5051 | WebhookGistEvent
52+ | WebhookGitHubAppAuthorizationEvent
5153 | WebhookGollumEvent
5254 | WebhookInstallationEvent
5355 | WebhookInstallationRepositoriesEvent
@@ -59,29 +61,35 @@ data RepoWebhookEvent
5961 | WebhookMembershipEvent
6062 | WebhookMetaEvent
6163 | WebhookMilestoneEvent
62- | WebhookOrganizationEvent
6364 | WebhookOrgBlockEvent
65+ | WebhookOrganizationEvent
66+ | WebhookPackage
6467 | WebhookPageBuildEvent
6568 | WebhookPingEvent
6669 | WebhookProjectCardEvent
6770 | WebhookProjectColumnEvent
6871 | WebhookProjectEvent
6972 | WebhookPublicEvent
7073 | WebhookPullRequestEvent
71- | WebhookPullRequestReviewEvent
7274 | WebhookPullRequestReviewCommentEvent
75+ | WebhookPullRequestReviewEvent
7376 | WebhookPushEvent
7477 | WebhookRegistryPackageEvent
7578 | WebhookReleaseEvent
79+ | WebhookRepositoryDispatch
7680 | WebhookRepositoryEvent
7781 | WebhookRepositoryImportEvent
7882 | WebhookRepositoryVulnerabilityAlertEvent
83+ | WebhookSecretScanningAlert
7984 | WebhookSecurityAdvisoryEvent
85+ | WebhookSponsorship
8086 | WebhookStarEvent
8187 | WebhookStatusEvent
82- | WebhookTeamEvent
8388 | WebhookTeamAddEvent
89+ | WebhookTeamEvent
8490 | WebhookWatchEvent
91+ | WebhookWorkflowDispatch
92+ | WebhookWorkflowRun
8593 deriving (Show , Data , Typeable , Eq , Ord , Generic )
8694
8795instance NFData RepoWebhookEvent where rnf = genericRnf
@@ -137,19 +145,21 @@ instance FromJSON RepoWebhookEvent where
137145 " *" -> pure WebhookWildcardEvent
138146 " check_run" -> pure WebhookCheckRunEvent
139147 " check_suite" -> pure WebhookCheckSuiteEvent
148+ " code_scanning_alert" -> pure WebhookCodeScanningAlert
140149 " commit_comment" -> pure WebhookCommitCommentEvent
141150 " content_reference" -> pure WebhookContentReferenceEvent
142151 " create" -> pure WebhookCreateEvent
143152 " delete" -> pure WebhookDeleteEvent
144153 " deploy_key" -> pure WebhookDeployKeyEvent
145154 " deployment" -> pure WebhookDeploymentEvent
146155 " deployment_status" -> pure WebhookDeploymentStatusEvent
156+ " discussion" -> pure WebhookDiscussion
157+ " discussion_comment" -> pure WebhookDiscussionComment
147158 " download" -> pure WebhookDownloadEvent
148159 " follow" -> pure WebhookFollowEvent
149160 " fork" -> pure WebhookForkEvent
150- " fork_apply" -> pure WebhookForkApplyEvent
151- " github_app_authorization" -> pure WebhookGitHubAppAuthorizationEvent
152161 " gist" -> pure WebhookGistEvent
162+ " github_app_authorization" -> pure WebhookGitHubAppAuthorizationEvent
153163 " gollum" -> pure WebhookGollumEvent
154164 " installation" -> pure WebhookInstallationEvent
155165 " installation_repositories" -> pure WebhookInstallationRepositoriesEvent
@@ -161,13 +171,14 @@ instance FromJSON RepoWebhookEvent where
161171 " membership" -> pure WebhookMembershipEvent
162172 " meta" -> pure WebhookMetaEvent
163173 " milestone" -> pure WebhookMilestoneEvent
164- " organization" -> pure WebhookOrganizationEvent
165174 " org_block" -> pure WebhookOrgBlockEvent
175+ " organization" -> pure WebhookOrganizationEvent
176+ " package" -> pure WebhookPackage
166177 " page_build" -> pure WebhookPageBuildEvent
167178 " ping" -> pure WebhookPingEvent
179+ " project" -> pure WebhookProjectEvent
168180 " project_card" -> pure WebhookProjectCardEvent
169181 " project_column" -> pure WebhookProjectColumnEvent
170- " project" -> pure WebhookProjectEvent
171182 " public" -> pure WebhookPublicEvent
172183 " pull_request" -> pure WebhookPullRequestEvent
173184 " pull_request_review" -> pure WebhookPullRequestReviewEvent
@@ -176,33 +187,40 @@ instance FromJSON RepoWebhookEvent where
176187 " registry_package" -> pure WebhookRegistryPackageEvent
177188 " release" -> pure WebhookReleaseEvent
178189 " repository" -> pure WebhookRepositoryEvent
190+ " repository_dispatch" -> pure WebhookRepositoryDispatch
179191 " repository_import" -> pure WebhookRepositoryImportEvent
180192 " repository_vulnerability_alert" -> pure WebhookRepositoryVulnerabilityAlertEvent
193+ " secret_scanning_alert" -> pure WebhookSecretScanningAlert
181194 " security_advisory" -> pure WebhookSecurityAdvisoryEvent
195+ " sponsorship" -> pure WebhookSponsorship
182196 " star" -> pure WebhookStarEvent
183197 " status" -> pure WebhookStatusEvent
184198 " team" -> pure WebhookTeamEvent
185199 " team_add" -> pure WebhookTeamAddEvent
186200 " watch" -> pure WebhookWatchEvent
201+ " workflow_dispatch" -> pure WebhookWorkflowDispatch
202+ " workflow_run" -> pure WebhookWorkflowRun
187203 _ -> fail $ " Unknown RepoWebhookEvent: " <> T. unpack t
188204
189205instance ToJSON RepoWebhookEvent where
190206 toJSON WebhookWildcardEvent = String " *"
191207 toJSON WebhookCheckRunEvent = String " check_run"
192208 toJSON WebhookCheckSuiteEvent = String " check_suite"
209+ toJSON WebhookCodeScanningAlert = String " code_scanning_alert"
193210 toJSON WebhookCommitCommentEvent = String " commit_comment"
194211 toJSON WebhookContentReferenceEvent = String " content_reference"
195212 toJSON WebhookCreateEvent = String " create"
196213 toJSON WebhookDeleteEvent = String " delete"
197214 toJSON WebhookDeployKeyEvent = String " deploy_key"
198215 toJSON WebhookDeploymentEvent = String " deployment"
199216 toJSON WebhookDeploymentStatusEvent = String " deployment_status"
217+ toJSON WebhookDiscussion = String " discussion"
218+ toJSON WebhookDiscussionComment = String " discussion_comment"
200219 toJSON WebhookDownloadEvent = String " download"
201220 toJSON WebhookFollowEvent = String " follow"
202221 toJSON WebhookForkEvent = String " fork"
203- toJSON WebhookForkApplyEvent = String " fork_apply"
204- toJSON WebhookGitHubAppAuthorizationEvent = String " github_app_authorization"
205222 toJSON WebhookGistEvent = String " gist"
223+ toJSON WebhookGitHubAppAuthorizationEvent = String " github_app_authorization"
206224 toJSON WebhookGollumEvent = String " gollum"
207225 toJSON WebhookInstallationEvent = String " installation"
208226 toJSON WebhookInstallationRepositoriesEvent = String " installation_repositories"
@@ -214,29 +232,35 @@ instance ToJSON RepoWebhookEvent where
214232 toJSON WebhookMembershipEvent = String " membership"
215233 toJSON WebhookMetaEvent = String " meta"
216234 toJSON WebhookMilestoneEvent = String " milestone"
217- toJSON WebhookOrganizationEvent = String " organization"
218235 toJSON WebhookOrgBlockEvent = String " org_block"
236+ toJSON WebhookOrganizationEvent = String " organization"
237+ toJSON WebhookPackage = String " package"
219238 toJSON WebhookPageBuildEvent = String " page_build"
220239 toJSON WebhookPingEvent = String " ping"
221240 toJSON WebhookProjectCardEvent = String " project_card"
222241 toJSON WebhookProjectColumnEvent = String " project_column"
223242 toJSON WebhookProjectEvent = String " project"
224243 toJSON WebhookPublicEvent = String " public"
225244 toJSON WebhookPullRequestEvent = String " pull_request"
226- toJSON WebhookPullRequestReviewEvent = String " pull_request_review"
227245 toJSON WebhookPullRequestReviewCommentEvent = String " pull_request_review_comment"
246+ toJSON WebhookPullRequestReviewEvent = String " pull_request_review"
228247 toJSON WebhookPushEvent = String " push"
229248 toJSON WebhookRegistryPackageEvent = String " registry_package"
230249 toJSON WebhookReleaseEvent = String " release"
250+ toJSON WebhookRepositoryDispatch = String " repository_dispatch"
231251 toJSON WebhookRepositoryEvent = String " repository"
232252 toJSON WebhookRepositoryImportEvent = String " repository_import"
233253 toJSON WebhookRepositoryVulnerabilityAlertEvent = String " repository_vulnerability_alert"
254+ toJSON WebhookSecretScanningAlert = String " secret_scanning_alert"
234255 toJSON WebhookSecurityAdvisoryEvent = String " security_advisory"
256+ toJSON WebhookSponsorship = String " sponsorship"
235257 toJSON WebhookStarEvent = String " star"
236258 toJSON WebhookStatusEvent = String " status"
237- toJSON WebhookTeamEvent = String " team"
238259 toJSON WebhookTeamAddEvent = String " team_add"
260+ toJSON WebhookTeamEvent = String " team"
239261 toJSON WebhookWatchEvent = String " watch"
262+ toJSON WebhookWorkflowDispatch = String " workflow_dispatch"
263+ toJSON WebhookWorkflowRun = String " workflow_run"
240264
241265instance FromJSON RepoWebhook where
242266 parseJSON = withObject " RepoWebhook" $ \ o -> RepoWebhook
0 commit comments