Repository navigation
Expand file tree
/
Copy pathevents.adm
More file actions
793 lines (717 loc) · 31.1 KB
/
Copy pathevents.adm
File metadata and controls
793 lines (717 loc) · 31.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
// Generated by tools/generate.py from GitHub's OpenAPI description; do not edit.
partial module adm.dev.github {
partial type WebhookEvent {
// This event occurs when there is a change to branch protection configurations for a
// repository.
// `branch_protection_configuration`, action disabled, enabled: the payload, none for another event.
// Fails when the payload does not read as the event's.
def branchProtectionConfiguration() !?BranchProtectionConfigurationEvent {
return none unless name == "branch_protection_configuration"
let out = BranchProtectionConfigurationEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to branch protection rules.
// `branch_protection_rule`, action created, deleted, edited: the payload, none for another event.
// Fails when the payload does not read as the event's.
def branchProtectionRule() !?BranchProtectionRuleEvent {
return none unless name == "branch_protection_rule"
let out = BranchProtectionRuleEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a check run.
// `check_run`, action completed, created, requested_action, rerequested: the payload, none for another event.
// Fails when the payload does not read as the event's.
def checkRun() !?CheckRunEvent {
return none unless name == "check_run"
let out = CheckRunEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a check suite.
// `check_suite`, action completed, requested, rerequested: the payload, none for another event.
// Fails when the payload does not read as the event's.
def checkSuite() !?CheckSuiteEvent {
return none unless name == "check_suite"
let out = CheckSuiteEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to code scanning alerts in a
// repository.
// `code_scanning_alert`, action appeared_in_branch, closed_by_user, created, fixed, reopened, reopened_by_user, updated_assignment: the payload, none for another event.
// Fails when the payload does not read as the event's.
def codeScanningAlert() !?CodeScanningAlertEvent {
return none unless name == "code_scanning_alert"
let out = CodeScanningAlertEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to commit comments.
// `commit_comment`, action created: the payload, none for another event.
// Fails when the payload does not read as the event's.
def commitComment() !?CommitCommentEvent {
return none unless name == "commit_comment"
let out = CommitCommentEvent{}
try decode(out)
return out
}
// This event occurs when a Git branch or tag is created.
// `create`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def create() !?CreateEvent {
return none unless name == "create"
let out = CreateEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a custom property.
// `custom_property`, action created, deleted, promote_to_enterprise, updated: the payload, none for another event.
// Fails when the payload does not read as the event's.
def customProperty() !?CustomPropertyEvent {
return none unless name == "custom_property"
let out = CustomPropertyEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to custom property values for a
// repository.
// `custom_property_values`, action updated: the payload, none for another event.
// Fails when the payload does not read as the event's.
def customPropertyValues() !?CustomPropertyValuesEvent {
return none unless name == "custom_property_values"
let out = CustomPropertyValuesEvent{}
try decode(out)
return out
}
// This event occurs when a Git branch or tag is deleted.
// `delete`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def delete() !?DeleteEvent {
return none unless name == "delete"
let out = DeleteEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to Dependabot alerts.
// `dependabot_alert`, action assignees_changed, auto_dismissed, auto_reopened, created, dismissed, fixed, reintroduced, reopened, withdrawn: the payload, none for another event.
// Fails when the payload does not read as the event's.
def dependabotAlert() !?DependabotAlertEvent {
return none unless name == "dependabot_alert"
let out = DependabotAlertEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to deploy keys.
// `deploy_key`, action created, deleted: the payload, none for another event.
// Fails when the payload does not read as the event's.
def deployKey() !?DeployKeyEvent {
return none unless name == "deploy_key"
let out = DeployKeyEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to deployments.
// `deployment`, action created: the payload, none for another event.
// Fails when the payload does not read as the event's.
def deployment() !?DeploymentEvent {
return none unless name == "deployment"
let out = DeploymentEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to deployment protection rules.
// `deployment_protection_rule`, action requested: the payload, none for another event.
// Fails when the payload does not read as the event's.
def deploymentProtectionRule() !?DeploymentProtectionRuleEvent {
return none unless name == "deployment_protection_rule"
let out = DeploymentProtectionRuleEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to deployment reviews.
// `deployment_review`, action approved, rejected, requested: the payload, none for another event.
// Fails when the payload does not read as the event's.
def deploymentReview() !?DeploymentReviewEvent {
return none unless name == "deployment_review"
let out = DeploymentReviewEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to deployment statuses.
// `deployment_status`, action created: the payload, none for another event.
// Fails when the payload does not read as the event's.
def deploymentStatus() !?DeploymentStatusEvent {
return none unless name == "deployment_status"
let out = DeploymentStatusEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a discussion.
// `discussion`, action answered, category_changed, created, deleted, edited, labeled, locked, pinned, transferred, unanswered, unlabeled, unlocked, unpinned: the payload, none for another event.
// Fails when the payload does not read as the event's.
def discussion() !?DiscussionEvent {
return none unless name == "discussion"
let out = DiscussionEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a comment on a discussion.
// `discussion_comment`, action created, deleted, edited: the payload, none for another event.
// Fails when the payload does not read as the event's.
def discussionComment() !?DiscussionCommentEvent {
return none unless name == "discussion_comment"
let out = DiscussionCommentEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a discussion.
// `discussions`, action closed, reopened: the payload, none for another event.
// Fails when the payload does not read as the event's.
def discussions() !?DiscussionsEvent {
return none unless name == "discussions"
let out = DiscussionsEvent{}
try decode(out)
return out
}
// This event occurs when someone forks a repository.
// `fork`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def fork() !?ForkEvent {
return none unless name == "fork"
let out = ForkEvent{}
try decode(out)
return out
}
// This event occurs when a user revokes their authorization of a GitHub App.
// `github_app_authorization`, action revoked: the payload, none for another event.
// Fails when the payload does not read as the event's.
def githubAppAuthorization() !?GithubAppAuthorizationEvent {
return none unless name == "github_app_authorization"
let out = GithubAppAuthorizationEvent{}
try decode(out)
return out
}
// This event occurs when someone creates or updates a wiki page.
// `gollum`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def gollum() !?GollumEvent {
return none unless name == "gollum"
let out = GollumEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a GitHub App installation.
// `installation`, action created, deleted, new_permissions_accepted, suspend, unsuspend: the payload, none for another event.
// Fails when the payload does not read as the event's.
def installation() !?InstallationEvent {
return none unless name == "installation"
let out = InstallationEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to which repositories a GitHub App
// installation can access.
// `installation_repositories`, action added, removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def installationRepositories() !?InstallationRepositoriesEvent {
return none unless name == "installation_repositories"
let out = InstallationRepositoriesEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to the user or organization account
// that a GitHub App is installed on.
// `installation_target`, action renamed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def installationTarget() !?InstallationTargetEvent {
return none unless name == "installation_target"
let out = InstallationTargetEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a comment on an issue or pull
// request.
// `issue_comment`, action created, deleted, edited, pinned, unpinned: the payload, none for another event.
// Fails when the payload does not read as the event's.
def issueComment() !?IssueCommentEvent {
return none unless name == "issue_comment"
let out = IssueCommentEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to issue dependencies, such as
// blocking or blocked-by relationships.
// `issue_dependencies`, action blocked_by_added, blocked_by_removed, blocking_added, blocking_removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def issueDependencies() !?IssueDependenciesEvent {
return none unless name == "issue_dependencies"
let out = IssueDependenciesEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a "relates to" relationship between
// two issues.
// `issue_relates_to`, action relates_to_added, relates_to_removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def issueRelatesTo() !?IssueRelatesToEvent {
return none unless name == "issue_relates_to"
let out = IssueRelatesToEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to an issue.
// `issues`, action assigned, closed, deleted, demilestoned, edited, field_added, field_removed, labeled, locked, milestoned, opened, pinned, reopened, transferred, typed, unassigned, unlabeled, unlocked, unpinned, untyped: the payload, none for another event.
// Fails when the payload does not read as the event's.
def issues() !?IssuesEvent {
return none unless name == "issues"
let out = IssuesEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to labels.
// `label`, action archived, created, deleted, edited, unarchived: the payload, none for another event.
// Fails when the payload does not read as the event's.
def label() !?LabelEvent {
return none unless name == "label"
let out = LabelEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a GitHub Marketplace purchase.
// `marketplace_purchase`, action cancelled, changed, pending_change, pending_change_cancelled, purchased: the payload, none for another event.
// Fails when the payload does not read as the event's.
def marketplacePurchase() !?MarketplacePurchaseEvent {
return none unless name == "marketplace_purchase"
let out = MarketplacePurchaseEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to collaborators in a repository.
// `member`, action added, edited, removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def member() !?MemberEvent {
return none unless name == "member"
let out = MemberEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to team membership.
// `membership`, action added, removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def membership() !?MembershipEvent {
return none unless name == "membership"
let out = MembershipEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a merge group in a merge queue.
// `merge_group`, action checks_requested, destroyed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def mergeGroup() !?MergeGroupEvent {
return none unless name == "merge_group"
let out = MergeGroupEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a webhook itself.
// `meta`, action deleted: the payload, none for another event.
// Fails when the payload does not read as the event's.
def metaValue() !?MetaEvent {
return none unless name == "meta"
let out = MetaEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to milestones.
// `milestone`, action closed, created, deleted, edited, opened: the payload, none for another event.
// Fails when the payload does not read as the event's.
def milestone() !?MilestoneEvent {
return none unless name == "milestone"
let out = MilestoneEvent{}
try decode(out)
return out
}
// This event occurs when organization owners or moderators block or unblock a non-member
// from collaborating on the organization's repositories.
// `org_block`, action blocked, unblocked: the payload, none for another event.
// Fails when the payload does not read as the event's.
def orgBlock() !?OrgBlockEvent {
return none unless name == "org_block"
let out = OrgBlockEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to an organization and its members.
// `organization`, action deleted, member_added, member_invited, member_removed, renamed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def organization() !?OrganizationEvent {
return none unless name == "organization"
let out = OrganizationEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to GitHub Packages.
// `package`, action published, updated: the payload, none for another event.
// Fails when the payload does not read as the event's.
def package() !?PackageEvent {
return none unless name == "package"
let out = PackageEvent{}
try decode(out)
return out
}
// This event occurs when there is an attempted build of a GitHub Pages site.
// `page_build`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def pageBuild() !?PageBuildEvent {
return none unless name == "page_build"
let out = PageBuildEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a request for a fine-grained
// personal access token to access resources that belong to a resource owner that requires
// approval for token access.
// `personal_access_token_request`, action approved, cancelled, created, denied: the payload, none for another event.
// Fails when the payload does not read as the event's.
def personalAccessTokenRequest() !?PersonalAccessTokenRequestEvent {
return none unless name == "personal_access_token_request"
let out = PersonalAccessTokenRequestEvent{}
try decode(out)
return out
}
// This event occurs when you create a new webhook.
// `ping`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def ping() !?PingEvent {
return none unless name == "ping"
let out = PingEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a project (classic).
// `project`, action closed, created, deleted, edited, reopened: the payload, none for another event.
// Fails when the payload does not read as the event's.
def project() !?ProjectEvent {
return none unless name == "project"
let out = ProjectEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to an organization-level project.
// `project-v2`, action closed, created, deleted, edited, reopened: the payload, none for another event.
// Fails when the payload does not read as the event's.
def projectV2() !?ProjectV2Event {
return none unless name == "project-v2"
let out = ProjectV2Event{}
try decode(out)
return out
}
// This event occurs when there is activity relating to an item on an organization-level
// project.
// `project-v2-item`, action archived, converted, created, deleted, edited, reordered, restored: the payload, none for another event.
// Fails when the payload does not read as the event's.
def projectV2Item() !?ProjectV2ItemEvent {
return none unless name == "project-v2-item"
let out = ProjectV2ItemEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a status update on an
// organization-level project.
// `project-v2-status-update`, action created, deleted, edited: the payload, none for another event.
// Fails when the payload does not read as the event's.
def projectV2StatusUpdate() !?ProjectV2StatusUpdateEvent {
return none unless name == "project-v2-status-update"
let out = ProjectV2StatusUpdateEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a card on a project (classic).
// `project_card`, action converted, created, deleted, edited, moved: the payload, none for another event.
// Fails when the payload does not read as the event's.
def projectCard() !?ProjectCardEvent {
return none unless name == "project_card"
let out = ProjectCardEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a column on a project (classic).
// `project_column`, action created, deleted, edited, moved: the payload, none for another event.
// Fails when the payload does not read as the event's.
def projectColumn() !?ProjectColumnEvent {
return none unless name == "project_column"
let out = ProjectColumnEvent{}
try decode(out)
return out
}
// This event occurs when repository visibility changes from private to public.
// `public`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def public() !?PublicEvent {
return none unless name == "public"
let out = PublicEvent{}
try decode(out)
return out
}
// This event occurs when there is activity on a pull request.
// `pull_request`, action assigned, auto_merge_disabled, auto_merge_enabled, closed, converted_to_draft, demilestoned, dequeued, edited, enqueued, labeled, locked, milestoned, opened, ready_for_review, reopened, stacked, synchronize, unassigned, unlabeled, unlocked: the payload, none for another event.
// Fails when the payload does not read as the event's.
def pullRequest() !?PullRequestEvent {
return none unless name == "pull_request"
let out = PullRequestEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a pull request review.
// `pull_request_review`, action dismissed, edited, submitted: the payload, none for another event.
// Fails when the payload does not read as the event's.
def pullRequestReview() !?PullRequestReviewEvent {
return none unless name == "pull_request_review"
let out = PullRequestReviewEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a pull request review comment.
// `pull_request_review_comment`, action created, deleted, edited: the payload, none for another event.
// Fails when the payload does not read as the event's.
def pullRequestReviewComment() !?PullRequestReviewCommentEvent {
return none unless name == "pull_request_review_comment"
let out = PullRequestReviewCommentEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a comment thread on a pull request.
// `pull_request_review_thread`, action resolved, unresolved: the payload, none for another event.
// Fails when the payload does not read as the event's.
def pullRequestReviewThread() !?PullRequestReviewThreadEvent {
return none unless name == "pull_request_review_thread"
let out = PullRequestReviewThreadEvent{}
try decode(out)
return out
}
// This event occurs when there is a push to a repository branch.
// `push`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def push() !?PushEvent {
return none unless name == "push"
let out = PushEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to GitHub Packages.
// `registry_package`, action published, updated: the payload, none for another event.
// Fails when the payload does not read as the event's.
def registryPackage() !?RegistryPackageEvent {
return none unless name == "registry_package"
let out = RegistryPackageEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to releases.
// `release`, action created, deleted, edited, prereleased, published, released, unpublished: the payload, none for another event.
// Fails when the payload does not read as the event's.
def release() !?ReleaseEvent {
return none unless name == "release"
let out = ReleaseEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to repositories.
// `repository`, action archived, created, deleted, edited, privatized, publicized, renamed, transferred, unarchived: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repository() !?RepositoryEvent {
return none unless name == "repository"
let out = RepositoryEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a repository security advisory.
// `repository_advisory`, action published, reported: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repositoryAdvisory() !?RepositoryAdvisoryEvent {
return none unless name == "repository_advisory"
let out = RepositoryAdvisoryEvent{}
try decode(out)
return out
}
// This event occurs when a GitHub App sends a `POST` request to
// `/repos/(owner)/(repo)/dispatches`.
// `repository_dispatch`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repositoryDispatch() !?RepositoryDispatchEvent {
return none unless name == "repository_dispatch"
let out = RepositoryDispatchEvent{}
try decode(out)
return out
}
// This event occurs when a repository is imported to GitHub.
// `repository_import`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repositoryImport() !?RepositoryImportEvent {
return none unless name == "repository_import"
let out = RepositoryImportEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to repository rulesets.
// `repository_ruleset`, action created, deleted, edited: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repositoryRuleset() !?RepositoryRulesetEvent {
return none unless name == "repository_ruleset"
let out = RepositoryRulesetEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a security vulnerability alert in a
// repository.
// `repository_vulnerability_alert`, action create, dismiss, reopen, resolve: the payload, none for another event.
// Fails when the payload does not read as the event's.
def repositoryVulnerabilityAlert() !?RepositoryVulnerabilityAlertEvent {
return none unless name == "repository_vulnerability_alert"
let out = RepositoryVulnerabilityAlertEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a secret scanning alert.
// `secret_scanning_alert`, action assigned, created, metadata_created, metadata_removed, publicly_leaked, reopened, resolved, unassigned, validated: the payload, none for another event.
// Fails when the payload does not read as the event's.
def secretScanningAlert() !?SecretScanningAlertEvent {
return none unless name == "secret_scanning_alert"
let out = SecretScanningAlertEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to the locations of a secret in a
// secret scanning alert.
// `secret_scanning_alert_location`, action created: the payload, none for another event.
// Fails when the payload does not read as the event's.
def secretScanningAlertLocation() !?SecretScanningAlertLocationEvent {
return none unless name == "secret_scanning_alert_location"
let out = SecretScanningAlertLocationEvent{}
try decode(out)
return out
}
// This event occurs when secret scanning completes certain scans on a repository.
// `secret_scanning_scan`, action completed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def secretScanningScan() !?SecretScanningScanEvent {
return none unless name == "secret_scanning_scan"
let out = SecretScanningScanEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a global security advisory that was
// reviewed by GitHub.
// `security_advisory`, action published, updated, withdrawn: the payload, none for another event.
// Fails when the payload does not read as the event's.
def securityAdvisory() !?SecurityAdvisoryEvent {
return none unless name == "security_advisory"
let out = SecurityAdvisoryEvent{}
try decode(out)
return out
}
// This event occurs when code security and analysis features are enabled or disabled for a
// repository.
// `security_and_analysis`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def securityAndAnalysis() !?SecurityAndAnalysisEvent {
return none unless name == "security_and_analysis"
let out = SecurityAndAnalysisEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a sponsorship listing.
// `sponsorship`, action cancelled, created, edited, pending_cancellation, pending_tier_change, tier_changed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def sponsorship() !?SponsorshipEvent {
return none unless name == "sponsorship"
let out = SponsorshipEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to repository stars.
// `star`, action created, deleted: the payload, none for another event.
// Fails when the payload does not read as the event's.
def star() !?StarEvent {
return none unless name == "star"
let out = StarEvent{}
try decode(out)
return out
}
// This event occurs when the status of a Git commit changes.
// `status`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def status() !?StatusEvent {
return none unless name == "status"
let out = StatusEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to sub-issues.
// `sub_issues`, action parent_issue_added, parent_issue_removed, sub_issue_added, sub_issue_removed: the payload, none for another event.
// Fails when the payload does not read as the event's.
def subIssues() !?SubIssuesEvent {
return none unless name == "sub_issues"
let out = SubIssuesEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to teams in an organization.
// `team`, action added_to_repository, created, deleted, edited, removed_from_repository: the payload, none for another event.
// Fails when the payload does not read as the event's.
def team() !?TeamEvent {
return none unless name == "team"
let out = TeamEvent{}
try decode(out)
return out
}
// This event occurs when a team is added to a repository.
// `team_add`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def teamAdd() !?TeamAddEvent {
return none unless name == "team_add"
let out = TeamAddEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to watching, or subscribing to, a
// repository.
// `watch`, action started: the payload, none for another event.
// Fails when the payload does not read as the event's.
def watch() !?WatchEvent {
return none unless name == "watch"
let out = WatchEvent{}
try decode(out)
return out
}
// This event occurs when a GitHub Actions workflow is manually triggered.
// `workflow_dispatch`: the payload, none for another event.
// Fails when the payload does not read as the event's.
def workflowDispatch() !?WorkflowDispatchEvent {
return none unless name == "workflow_dispatch"
let out = WorkflowDispatchEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a job in a GitHub Actions workflow.
// `workflow_job`, action completed, in_progress, queued, waiting: the payload, none for another event.
// Fails when the payload does not read as the event's.
def workflowJob() !?WorkflowJobEvent {
return none unless name == "workflow_job"
let out = WorkflowJobEvent{}
try decode(out)
return out
}
// This event occurs when there is activity relating to a run of a GitHub Actions workflow.
// `workflow_run`, action completed, in_progress, requested: the payload, none for another event.
// Fails when the payload does not read as the event's.
def workflowRun() !?WorkflowRunEvent {
return none unless name == "workflow_run"
let out = WorkflowRunEvent{}
try decode(out)
return out
}
}
}