-
Notifications
You must be signed in to change notification settings - Fork 3
/
github_events.go
2944 lines (2275 loc) · 115 KB
/
github_events.go
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
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by codegen. DO NOT EDIT.
package probot
import "github.com/google/go-github/v48/github"
// githubEvent contains all event and handler types
type githubEvent struct {
// BranchProtectionRule is webhook event `branch_protection_rule`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule
BranchProtectionRule githubEventBranchProtectionRuleAllInOne
// CheckRun is webhook event `check_run`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#check_run
CheckRun githubEventCheckRunAllInOne
// CheckSuite is webhook event `check_suite`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#check_suite
CheckSuite githubEventCheckSuiteAllInOne
// CommitComment is webhook event `commit_comment`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#commit_comment
CommitComment githubEventCommitCommentAllInOne
// Create is webhook event `create`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#create
Create githubEventCreateAllInOne
// Delete is webhook event `delete`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#delete
Delete githubEventDeleteAllInOne
// DeployKey is webhook event `deploy_key`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deploy_key
DeployKey githubEventDeployKeyAllInOne
// DeploymentStatus is webhook event `deployment_status`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_status
DeploymentStatus githubEventDeploymentStatusAllInOne
// Deployment is webhook event `deployment`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment
Deployment githubEventDeploymentAllInOne
// Discussion is webhook event `discussion`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion
Discussion githubEventDiscussionAllInOne
// Fork is webhook event `fork`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#fork
Fork githubEventForkAllInOne
// GitHubAppAuthorization is webhook event `git_hub_app_authorization`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#git_hub_app_authorization
GitHubAppAuthorization githubEventGitHubAppAuthorizationAllInOne
// Gollum is webhook event `gollum`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#gollum
Gollum githubEventGollumAllInOne
// InstallationRepositories is webhook event `installation_repositories`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_repositories
InstallationRepositories githubEventInstallationRepositoriesAllInOne
// Installation is webhook event `installation`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#installation
Installation githubEventInstallationAllInOne
// IssueComment is webhook event `issue_comment`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment
IssueComment githubEventIssueCommentAllInOne
// Issues is webhook event `issues`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
Issues githubEventIssuesAllInOne
// Label is webhook event `label`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#label
Label githubEventLabelAllInOne
// MarketplacePurchase is webhook event `marketplace_purchase`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#marketplace_purchase
MarketplacePurchase githubEventMarketplacePurchaseAllInOne
// Member is webhook event `member`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#member
Member githubEventMemberAllInOne
// Membership is webhook event `membership`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#membership
Membership githubEventMembershipAllInOne
// MergeGroup is webhook event `merge_group`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#merge_group
MergeGroup githubEventMergeGroupAllInOne
// Meta is webhook event `meta`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#meta
Meta githubEventMetaAllInOne
// Milestone is webhook event `milestone`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#milestone
Milestone githubEventMilestoneAllInOne
// OrgBlock is webhook event `org_block`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#org_block
OrgBlock githubEventOrgBlockAllInOne
// Organization is webhook event `organization`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#organization
Organization githubEventOrganizationAllInOne
// Package is webhook event `package`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#package
Package githubEventPackageAllInOne
// PageBuild is webhook event `page_build`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#page_build
PageBuild githubEventPageBuildAllInOne
// Ping is webhook event `ping`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#ping
Ping githubEventPingAllInOne
// ProjectCard is webhook event `project_card`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project_card
ProjectCard githubEventProjectCardAllInOne
// Project is webhook event `project`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project
Project githubEventProjectAllInOne
// ProjectColumn is webhook event `project_column`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project_column
ProjectColumn githubEventProjectColumnAllInOne
// Public is webhook event `public`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#public
Public githubEventPublicAllInOne
// PullRequestReviewComment is webhook event `pull_request_review_comment`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_comment
PullRequestReviewComment githubEventPullRequestReviewCommentAllInOne
// PullRequestReviewThread is webhook event `pull_request_review_thread`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_thread
PullRequestReviewThread githubEventPullRequestReviewThreadAllInOne
// PullRequestReview is webhook event `pull_request_review`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review
PullRequestReview githubEventPullRequestReviewAllInOne
// PullRequest is webhook event `pull_request`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
PullRequest githubEventPullRequestAllInOne
// Push is webhook event `push`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
Push githubEventPushAllInOne
// Release is webhook event `release`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
Release githubEventReleaseAllInOne
// Repository is webhook event `repository`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository
Repository githubEventRepositoryAllInOne
// RepositoryDispatch is webhook event `repository_dispatch`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_dispatch
RepositoryDispatch githubEventRepositoryDispatchAllInOne
// RepositoryVulnerabilityAlert is webhook event `repository_vulnerability_alert`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_vulnerability_alert
RepositoryVulnerabilityAlert githubEventRepositoryVulnerabilityAlertAllInOne
// SecretScanningAlert is webhook event `secret_scanning_alert`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert
SecretScanningAlert githubEventSecretScanningAlertAllInOne
// Star is webhook event `star`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#star
Star githubEventStarAllInOne
// TeamAdd is webhook event `team_add`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#team_add
TeamAdd githubEventTeamAddAllInOne
// Team is webhook event `team`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#team
Team githubEventTeamAllInOne
// Watch is webhook event `watch`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#watch
Watch githubEventWatchAllInOne
// Status is webhook event `status`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#status
Status githubEventStatusAllInOne
// WorkflowDispatch is webhook event `workflow_dispatch`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
WorkflowDispatch githubEventWorkflowDispatchAllInOne
// WorkflowJob is webhook event `workflow_job`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
WorkflowJob githubEventWorkflowJobAllInOne
// WorkflowRun is webhook event `workflow_run`.
// reference: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run
WorkflowRun githubEventWorkflowRunAllInOne
}
// githubEventBranchProtectionRuleAllInOne contains event and handler for type BranchProtectionRule
type githubEventBranchProtectionRuleAllInOne struct {
githubEventBranchProtectionRule
// Deleted is `branch_protection_rule` event with `deleted` action.
Deleted githubEventBranchProtectionRuleDeleted
// Created is `branch_protection_rule` event with `created` action.
Created githubEventBranchProtectionRuleCreated
// Edited is `branch_protection_rule` event with `edited` action.
Edited githubEventBranchProtectionRuleEdited
}
// GitHubBranchProtectionRuleContext is the context type for BranchProtectionRule event handler to process
type GitHubBranchProtectionRuleContext = ProbotContext[GitHubClient, github.BranchProtectionRuleEvent]
// Handler returns event handler function to process context
func (githubEventBranchProtectionRuleAllInOne) Handler(fn func(ctx GitHubBranchProtectionRuleContext)) Handler {
return EventHandlerFunc[GitHubClient, github.BranchProtectionRuleEvent](fn)
}
// githubEventBranchProtectionRule is the base event type of BranchProtectionRule
type githubEventBranchProtectionRule struct{}
// Type implement the WebhookEvent interface
func (githubEventBranchProtectionRule) Type() string { return "branch_protection_rule" }
// Action implement the WebhookEvent interface
func (githubEventBranchProtectionRule) Action() string { return "" }
// githubEventBranchProtectionRuleDeleted is the Deleted action of BranchProtectionRule event
type githubEventBranchProtectionRuleDeleted struct {
githubEventBranchProtectionRule
}
// Action implement the WebhookEvent interface
func (githubEventBranchProtectionRuleDeleted) Action() string { return "deleted" }
// githubEventBranchProtectionRuleCreated is the Created action of BranchProtectionRule event
type githubEventBranchProtectionRuleCreated struct {
githubEventBranchProtectionRule
}
// Action implement the WebhookEvent interface
func (githubEventBranchProtectionRuleCreated) Action() string { return "created" }
// githubEventBranchProtectionRuleEdited is the Edited action of BranchProtectionRule event
type githubEventBranchProtectionRuleEdited struct {
githubEventBranchProtectionRule
}
// Action implement the WebhookEvent interface
func (githubEventBranchProtectionRuleEdited) Action() string { return "edited" }
// githubEventCheckRunAllInOne contains event and handler for type CheckRun
type githubEventCheckRunAllInOne struct {
githubEventCheckRun
// Completed is `check_run` event with `completed` action.
Completed githubEventCheckRunCompleted
// Created is `check_run` event with `created` action.
Created githubEventCheckRunCreated
// RequestedAction is `check_run` event with `requested_action` action.
RequestedAction githubEventCheckRunRequestedAction
// Rerequested is `check_run` event with `rerequested` action.
Rerequested githubEventCheckRunRerequested
}
// GitHubCheckRunContext is the context type for CheckRun event handler to process
type GitHubCheckRunContext = ProbotContext[GitHubClient, github.CheckRunEvent]
// Handler returns event handler function to process context
func (githubEventCheckRunAllInOne) Handler(fn func(ctx GitHubCheckRunContext)) Handler {
return EventHandlerFunc[GitHubClient, github.CheckRunEvent](fn)
}
// githubEventCheckRun is the base event type of CheckRun
type githubEventCheckRun struct{}
// Type implement the WebhookEvent interface
func (githubEventCheckRun) Type() string { return "check_run" }
// Action implement the WebhookEvent interface
func (githubEventCheckRun) Action() string { return "" }
// githubEventCheckRunCompleted is the Completed action of CheckRun event
type githubEventCheckRunCompleted struct {
githubEventCheckRun
}
// Action implement the WebhookEvent interface
func (githubEventCheckRunCompleted) Action() string { return "completed" }
// githubEventCheckRunCreated is the Created action of CheckRun event
type githubEventCheckRunCreated struct {
githubEventCheckRun
}
// Action implement the WebhookEvent interface
func (githubEventCheckRunCreated) Action() string { return "created" }
// githubEventCheckRunRequestedAction is the RequestedAction action of CheckRun event
type githubEventCheckRunRequestedAction struct {
githubEventCheckRun
}
// Action implement the WebhookEvent interface
func (githubEventCheckRunRequestedAction) Action() string { return "requested_action" }
// githubEventCheckRunRerequested is the Rerequested action of CheckRun event
type githubEventCheckRunRerequested struct {
githubEventCheckRun
}
// Action implement the WebhookEvent interface
func (githubEventCheckRunRerequested) Action() string { return "rerequested" }
// githubEventCheckSuiteAllInOne contains event and handler for type CheckSuite
type githubEventCheckSuiteAllInOne struct {
githubEventCheckSuite
// Completed is `check_suite` event with `completed` action.
Completed githubEventCheckSuiteCompleted
// Requested is `check_suite` event with `requested` action.
Requested githubEventCheckSuiteRequested
// Rerequested is `check_suite` event with `rerequested` action.
Rerequested githubEventCheckSuiteRerequested
}
// GitHubCheckSuiteContext is the context type for CheckSuite event handler to process
type GitHubCheckSuiteContext = ProbotContext[GitHubClient, github.CheckSuiteEvent]
// Handler returns event handler function to process context
func (githubEventCheckSuiteAllInOne) Handler(fn func(ctx GitHubCheckSuiteContext)) Handler {
return EventHandlerFunc[GitHubClient, github.CheckSuiteEvent](fn)
}
// githubEventCheckSuite is the base event type of CheckSuite
type githubEventCheckSuite struct{}
// Type implement the WebhookEvent interface
func (githubEventCheckSuite) Type() string { return "check_suite" }
// Action implement the WebhookEvent interface
func (githubEventCheckSuite) Action() string { return "" }
// githubEventCheckSuiteCompleted is the Completed action of CheckSuite event
type githubEventCheckSuiteCompleted struct {
githubEventCheckSuite
}
// Action implement the WebhookEvent interface
func (githubEventCheckSuiteCompleted) Action() string { return "completed" }
// githubEventCheckSuiteRequested is the Requested action of CheckSuite event
type githubEventCheckSuiteRequested struct {
githubEventCheckSuite
}
// Action implement the WebhookEvent interface
func (githubEventCheckSuiteRequested) Action() string { return "requested" }
// githubEventCheckSuiteRerequested is the Rerequested action of CheckSuite event
type githubEventCheckSuiteRerequested struct {
githubEventCheckSuite
}
// Action implement the WebhookEvent interface
func (githubEventCheckSuiteRerequested) Action() string { return "rerequested" }
// githubEventCommitCommentAllInOne contains event and handler for type CommitComment
type githubEventCommitCommentAllInOne struct {
githubEventCommitComment
// Created is `commit_comment` event with `created` action.
Created githubEventCommitCommentCreated
}
// GitHubCommitCommentContext is the context type for CommitComment event handler to process
type GitHubCommitCommentContext = ProbotContext[GitHubClient, github.CommitCommentEvent]
// Handler returns event handler function to process context
func (githubEventCommitCommentAllInOne) Handler(fn func(ctx GitHubCommitCommentContext)) Handler {
return EventHandlerFunc[GitHubClient, github.CommitCommentEvent](fn)
}
// githubEventCommitComment is the base event type of CommitComment
type githubEventCommitComment struct{}
// Type implement the WebhookEvent interface
func (githubEventCommitComment) Type() string { return "commit_comment" }
// Action implement the WebhookEvent interface
func (githubEventCommitComment) Action() string { return "" }
// githubEventCommitCommentCreated is the Created action of CommitComment event
type githubEventCommitCommentCreated struct {
githubEventCommitComment
}
// Action implement the WebhookEvent interface
func (githubEventCommitCommentCreated) Action() string { return "created" }
// githubEventCreateAllInOne contains event and handler for type Create
type githubEventCreateAllInOne struct {
githubEventCreate
}
// GitHubCreateContext is the context type for Create event handler to process
type GitHubCreateContext = ProbotContext[GitHubClient, github.CreateEvent]
// Handler returns event handler function to process context
func (githubEventCreateAllInOne) Handler(fn func(ctx GitHubCreateContext)) Handler {
return EventHandlerFunc[GitHubClient, github.CreateEvent](fn)
}
// githubEventCreate is the base event type of Create
type githubEventCreate struct{}
// Type implement the WebhookEvent interface
func (githubEventCreate) Type() string { return "create" }
// Action implement the WebhookEvent interface
func (githubEventCreate) Action() string { return "" }
// githubEventDeleteAllInOne contains event and handler for type Delete
type githubEventDeleteAllInOne struct {
githubEventDelete
}
// GitHubDeleteContext is the context type for Delete event handler to process
type GitHubDeleteContext = ProbotContext[GitHubClient, github.DeleteEvent]
// Handler returns event handler function to process context
func (githubEventDeleteAllInOne) Handler(fn func(ctx GitHubDeleteContext)) Handler {
return EventHandlerFunc[GitHubClient, github.DeleteEvent](fn)
}
// githubEventDelete is the base event type of Delete
type githubEventDelete struct{}
// Type implement the WebhookEvent interface
func (githubEventDelete) Type() string { return "delete" }
// Action implement the WebhookEvent interface
func (githubEventDelete) Action() string { return "" }
// githubEventDeployKeyAllInOne contains event and handler for type DeployKey
type githubEventDeployKeyAllInOne struct {
githubEventDeployKey
// Created is `deploy_key` event with `created` action.
Created githubEventDeployKeyCreated
// Deleted is `deploy_key` event with `deleted` action.
Deleted githubEventDeployKeyDeleted
}
// GitHubDeployKeyContext is the context type for DeployKey event handler to process
type GitHubDeployKeyContext = ProbotContext[GitHubClient, github.DeployKeyEvent]
// Handler returns event handler function to process context
func (githubEventDeployKeyAllInOne) Handler(fn func(ctx GitHubDeployKeyContext)) Handler {
return EventHandlerFunc[GitHubClient, github.DeployKeyEvent](fn)
}
// githubEventDeployKey is the base event type of DeployKey
type githubEventDeployKey struct{}
// Type implement the WebhookEvent interface
func (githubEventDeployKey) Type() string { return "deploy_key" }
// Action implement the WebhookEvent interface
func (githubEventDeployKey) Action() string { return "" }
// githubEventDeployKeyCreated is the Created action of DeployKey event
type githubEventDeployKeyCreated struct {
githubEventDeployKey
}
// Action implement the WebhookEvent interface
func (githubEventDeployKeyCreated) Action() string { return "created" }
// githubEventDeployKeyDeleted is the Deleted action of DeployKey event
type githubEventDeployKeyDeleted struct {
githubEventDeployKey
}
// Action implement the WebhookEvent interface
func (githubEventDeployKeyDeleted) Action() string { return "deleted" }
// githubEventDeploymentStatusAllInOne contains event and handler for type DeploymentStatus
type githubEventDeploymentStatusAllInOne struct {
githubEventDeploymentStatus
// Created is `deployment_status` event with `created` action.
Created githubEventDeploymentStatusCreated
}
// GitHubDeploymentStatusContext is the context type for DeploymentStatus event handler to process
type GitHubDeploymentStatusContext = ProbotContext[GitHubClient, github.DeploymentStatusEvent]
// Handler returns event handler function to process context
func (githubEventDeploymentStatusAllInOne) Handler(fn func(ctx GitHubDeploymentStatusContext)) Handler {
return EventHandlerFunc[GitHubClient, github.DeploymentStatusEvent](fn)
}
// githubEventDeploymentStatus is the base event type of DeploymentStatus
type githubEventDeploymentStatus struct{}
// Type implement the WebhookEvent interface
func (githubEventDeploymentStatus) Type() string { return "deployment_status" }
// Action implement the WebhookEvent interface
func (githubEventDeploymentStatus) Action() string { return "" }
// githubEventDeploymentStatusCreated is the Created action of DeploymentStatus event
type githubEventDeploymentStatusCreated struct {
githubEventDeploymentStatus
}
// Action implement the WebhookEvent interface
func (githubEventDeploymentStatusCreated) Action() string { return "created" }
// githubEventDeploymentAllInOne contains event and handler for type Deployment
type githubEventDeploymentAllInOne struct {
githubEventDeployment
// Created is `deployment` event with `created` action.
Created githubEventDeploymentCreated
}
// GitHubDeploymentContext is the context type for Deployment event handler to process
type GitHubDeploymentContext = ProbotContext[GitHubClient, github.DeploymentEvent]
// Handler returns event handler function to process context
func (githubEventDeploymentAllInOne) Handler(fn func(ctx GitHubDeploymentContext)) Handler {
return EventHandlerFunc[GitHubClient, github.DeploymentEvent](fn)
}
// githubEventDeployment is the base event type of Deployment
type githubEventDeployment struct{}
// Type implement the WebhookEvent interface
func (githubEventDeployment) Type() string { return "deployment" }
// Action implement the WebhookEvent interface
func (githubEventDeployment) Action() string { return "" }
// githubEventDeploymentCreated is the Created action of Deployment event
type githubEventDeploymentCreated struct {
githubEventDeployment
}
// Action implement the WebhookEvent interface
func (githubEventDeploymentCreated) Action() string { return "created" }
// githubEventDiscussionAllInOne contains event and handler for type Discussion
type githubEventDiscussionAllInOne struct {
githubEventDiscussion
// Answered is `discussion` event with `answered` action.
Answered githubEventDiscussionAnswered
// CategoryChanged is `discussion` event with `category_changed` action.
CategoryChanged githubEventDiscussionCategoryChanged
// Created is `discussion` event with `created` action.
Created githubEventDiscussionCreated
// Deleted is `discussion` event with `deleted` action.
Deleted githubEventDiscussionDeleted
// Edited is `discussion` event with `edited` action.
Edited githubEventDiscussionEdited
// Labeled is `discussion` event with `labeled` action.
Labeled githubEventDiscussionLabeled
// Locked is `discussion` event with `locked` action.
Locked githubEventDiscussionLocked
// Pinned is `discussion` event with `pinned` action.
Pinned githubEventDiscussionPinned
// Transferred is `discussion` event with `transferred` action.
Transferred githubEventDiscussionTransferred
// Unanswered is `discussion` event with `unanswered` action.
Unanswered githubEventDiscussionUnanswered
// Unlabeled is `discussion` event with `unlabeled` action.
Unlabeled githubEventDiscussionUnlabeled
// Unlocked is `discussion` event with `unlocked` action.
Unlocked githubEventDiscussionUnlocked
// Unpinned is `discussion` event with `unpinned` action.
Unpinned githubEventDiscussionUnpinned
}
// GitHubDiscussionContext is the context type for Discussion event handler to process
type GitHubDiscussionContext = ProbotContext[GitHubClient, github.DiscussionEvent]
// Handler returns event handler function to process context
func (githubEventDiscussionAllInOne) Handler(fn func(ctx GitHubDiscussionContext)) Handler {
return EventHandlerFunc[GitHubClient, github.DiscussionEvent](fn)
}
// githubEventDiscussion is the base event type of Discussion
type githubEventDiscussion struct{}
// Type implement the WebhookEvent interface
func (githubEventDiscussion) Type() string { return "discussion" }
// Action implement the WebhookEvent interface
func (githubEventDiscussion) Action() string { return "" }
// githubEventDiscussionAnswered is the Answered action of Discussion event
type githubEventDiscussionAnswered struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionAnswered) Action() string { return "answered" }
// githubEventDiscussionCategoryChanged is the CategoryChanged action of Discussion event
type githubEventDiscussionCategoryChanged struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionCategoryChanged) Action() string { return "category_changed" }
// githubEventDiscussionCreated is the Created action of Discussion event
type githubEventDiscussionCreated struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionCreated) Action() string { return "created" }
// githubEventDiscussionDeleted is the Deleted action of Discussion event
type githubEventDiscussionDeleted struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionDeleted) Action() string { return "deleted" }
// githubEventDiscussionEdited is the Edited action of Discussion event
type githubEventDiscussionEdited struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionEdited) Action() string { return "edited" }
// githubEventDiscussionLabeled is the Labeled action of Discussion event
type githubEventDiscussionLabeled struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionLabeled) Action() string { return "labeled" }
// githubEventDiscussionLocked is the Locked action of Discussion event
type githubEventDiscussionLocked struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionLocked) Action() string { return "locked" }
// githubEventDiscussionPinned is the Pinned action of Discussion event
type githubEventDiscussionPinned struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionPinned) Action() string { return "pinned" }
// githubEventDiscussionTransferred is the Transferred action of Discussion event
type githubEventDiscussionTransferred struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionTransferred) Action() string { return "transferred" }
// githubEventDiscussionUnanswered is the Unanswered action of Discussion event
type githubEventDiscussionUnanswered struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionUnanswered) Action() string { return "unanswered" }
// githubEventDiscussionUnlabeled is the Unlabeled action of Discussion event
type githubEventDiscussionUnlabeled struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionUnlabeled) Action() string { return "unlabeled" }
// githubEventDiscussionUnlocked is the Unlocked action of Discussion event
type githubEventDiscussionUnlocked struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionUnlocked) Action() string { return "unlocked" }
// githubEventDiscussionUnpinned is the Unpinned action of Discussion event
type githubEventDiscussionUnpinned struct {
githubEventDiscussion
}
// Action implement the WebhookEvent interface
func (githubEventDiscussionUnpinned) Action() string { return "unpinned" }
// githubEventForkAllInOne contains event and handler for type Fork
type githubEventForkAllInOne struct {
githubEventFork
}
// GitHubForkContext is the context type for Fork event handler to process
type GitHubForkContext = ProbotContext[GitHubClient, github.ForkEvent]
// Handler returns event handler function to process context
func (githubEventForkAllInOne) Handler(fn func(ctx GitHubForkContext)) Handler {
return EventHandlerFunc[GitHubClient, github.ForkEvent](fn)
}
// githubEventFork is the base event type of Fork
type githubEventFork struct{}
// Type implement the WebhookEvent interface
func (githubEventFork) Type() string { return "fork" }
// Action implement the WebhookEvent interface
func (githubEventFork) Action() string { return "" }
// githubEventGitHubAppAuthorizationAllInOne contains event and handler for type GitHubAppAuthorization
type githubEventGitHubAppAuthorizationAllInOne struct {
githubEventGitHubAppAuthorization
}
// GitHubGitHubAppAuthorizationContext is the context type for GitHubAppAuthorization event handler to process
type GitHubGitHubAppAuthorizationContext = ProbotContext[GitHubClient, github.GitHubAppAuthorizationEvent]
// Handler returns event handler function to process context
func (githubEventGitHubAppAuthorizationAllInOne) Handler(fn func(ctx GitHubGitHubAppAuthorizationContext)) Handler {
return EventHandlerFunc[GitHubClient, github.GitHubAppAuthorizationEvent](fn)
}
// githubEventGitHubAppAuthorization is the base event type of GitHubAppAuthorization
type githubEventGitHubAppAuthorization struct{}
// Type implement the WebhookEvent interface
func (githubEventGitHubAppAuthorization) Type() string { return "github_app_authorization" }
// Action implement the WebhookEvent interface
func (githubEventGitHubAppAuthorization) Action() string { return "" }
// githubEventGollumAllInOne contains event and handler for type Gollum
type githubEventGollumAllInOne struct {
githubEventGollum
}
// GitHubGollumContext is the context type for Gollum event handler to process
type GitHubGollumContext = ProbotContext[GitHubClient, github.GollumEvent]
// Handler returns event handler function to process context
func (githubEventGollumAllInOne) Handler(fn func(ctx GitHubGollumContext)) Handler {
return EventHandlerFunc[GitHubClient, github.GollumEvent](fn)
}
// githubEventGollum is the base event type of Gollum
type githubEventGollum struct{}
// Type implement the WebhookEvent interface
func (githubEventGollum) Type() string { return "gollum" }
// Action implement the WebhookEvent interface
func (githubEventGollum) Action() string { return "" }
// githubEventInstallationRepositoriesAllInOne contains event and handler for type InstallationRepositories
type githubEventInstallationRepositoriesAllInOne struct {
githubEventInstallationRepositories
// Added is `installation_repositories` event with `added` action.
Added githubEventInstallationRepositoriesAdded
// Removed is `installation_repositories` event with `removed` action.
Removed githubEventInstallationRepositoriesRemoved
}
// GitHubInstallationRepositoriesContext is the context type for InstallationRepositories event handler to process
type GitHubInstallationRepositoriesContext = ProbotContext[GitHubClient, github.InstallationRepositoriesEvent]
// Handler returns event handler function to process context
func (githubEventInstallationRepositoriesAllInOne) Handler(fn func(ctx GitHubInstallationRepositoriesContext)) Handler {
return EventHandlerFunc[GitHubClient, github.InstallationRepositoriesEvent](fn)
}
// githubEventInstallationRepositories is the base event type of InstallationRepositories
type githubEventInstallationRepositories struct{}
// Type implement the WebhookEvent interface
func (githubEventInstallationRepositories) Type() string { return "installation_repositories" }
// Action implement the WebhookEvent interface
func (githubEventInstallationRepositories) Action() string { return "" }
// githubEventInstallationRepositoriesAdded is the Added action of InstallationRepositories event
type githubEventInstallationRepositoriesAdded struct {
githubEventInstallationRepositories
}
// Action implement the WebhookEvent interface
func (githubEventInstallationRepositoriesAdded) Action() string { return "added" }
// githubEventInstallationRepositoriesRemoved is the Removed action of InstallationRepositories event
type githubEventInstallationRepositoriesRemoved struct {
githubEventInstallationRepositories
}
// Action implement the WebhookEvent interface
func (githubEventInstallationRepositoriesRemoved) Action() string { return "removed" }
// githubEventInstallationAllInOne contains event and handler for type Installation
type githubEventInstallationAllInOne struct {
githubEventInstallation
// Created is `installation` event with `created` action.
Created githubEventInstallationCreated
// Deleted is `installation` event with `deleted` action.
Deleted githubEventInstallationDeleted
// NewPermissionsAccepted is `installation` event with `new_permissions_accepted` action.
NewPermissionsAccepted githubEventInstallationNewPermissionsAccepted
// Suspend is `installation` event with `suspend` action.
Suspend githubEventInstallationSuspend
// Unsuspend is `installation` event with `unsuspend` action.
Unsuspend githubEventInstallationUnsuspend
}
// GitHubInstallationContext is the context type for Installation event handler to process
type GitHubInstallationContext = ProbotContext[GitHubClient, github.InstallationEvent]
// Handler returns event handler function to process context
func (githubEventInstallationAllInOne) Handler(fn func(ctx GitHubInstallationContext)) Handler {
return EventHandlerFunc[GitHubClient, github.InstallationEvent](fn)
}
// githubEventInstallation is the base event type of Installation
type githubEventInstallation struct{}
// Type implement the WebhookEvent interface
func (githubEventInstallation) Type() string { return "installation" }
// Action implement the WebhookEvent interface
func (githubEventInstallation) Action() string { return "" }
// githubEventInstallationCreated is the Created action of Installation event
type githubEventInstallationCreated struct {
githubEventInstallation
}
// Action implement the WebhookEvent interface
func (githubEventInstallationCreated) Action() string { return "created" }
// githubEventInstallationDeleted is the Deleted action of Installation event
type githubEventInstallationDeleted struct {
githubEventInstallation
}
// Action implement the WebhookEvent interface
func (githubEventInstallationDeleted) Action() string { return "deleted" }
// githubEventInstallationNewPermissionsAccepted is the NewPermissionsAccepted action of Installation event
type githubEventInstallationNewPermissionsAccepted struct {
githubEventInstallation
}
// Action implement the WebhookEvent interface
func (githubEventInstallationNewPermissionsAccepted) Action() string {
return "new_permissions_accepted"
}
// githubEventInstallationSuspend is the Suspend action of Installation event
type githubEventInstallationSuspend struct {
githubEventInstallation
}
// Action implement the WebhookEvent interface
func (githubEventInstallationSuspend) Action() string { return "suspend" }
// githubEventInstallationUnsuspend is the Unsuspend action of Installation event
type githubEventInstallationUnsuspend struct {
githubEventInstallation
}
// Action implement the WebhookEvent interface
func (githubEventInstallationUnsuspend) Action() string { return "unsuspend" }
// githubEventIssueCommentAllInOne contains event and handler for type IssueComment
type githubEventIssueCommentAllInOne struct {
githubEventIssueComment
// Created is `issue_comment` event with `created` action.
Created githubEventIssueCommentCreated
// Deleted is `issue_comment` event with `deleted` action.
Deleted githubEventIssueCommentDeleted
// Edited is `issue_comment` event with `edited` action.
Edited githubEventIssueCommentEdited
}
// GitHubIssueCommentContext is the context type for IssueComment event handler to process
type GitHubIssueCommentContext = ProbotContext[GitHubClient, github.IssueCommentEvent]
// Handler returns event handler function to process context
func (githubEventIssueCommentAllInOne) Handler(fn func(ctx GitHubIssueCommentContext)) Handler {
return EventHandlerFunc[GitHubClient, github.IssueCommentEvent](fn)
}
// githubEventIssueComment is the base event type of IssueComment
type githubEventIssueComment struct{}
// Type implement the WebhookEvent interface
func (githubEventIssueComment) Type() string { return "issue_comment" }
// Action implement the WebhookEvent interface
func (githubEventIssueComment) Action() string { return "" }
// githubEventIssueCommentCreated is the Created action of IssueComment event
type githubEventIssueCommentCreated struct {
githubEventIssueComment
}
// Action implement the WebhookEvent interface
func (githubEventIssueCommentCreated) Action() string { return "created" }
// githubEventIssueCommentDeleted is the Deleted action of IssueComment event
type githubEventIssueCommentDeleted struct {
githubEventIssueComment
}
// Action implement the WebhookEvent interface
func (githubEventIssueCommentDeleted) Action() string { return "deleted" }
// githubEventIssueCommentEdited is the Edited action of IssueComment event
type githubEventIssueCommentEdited struct {
githubEventIssueComment
}
// Action implement the WebhookEvent interface
func (githubEventIssueCommentEdited) Action() string { return "edited" }
// githubEventIssuesAllInOne contains event and handler for type Issues
type githubEventIssuesAllInOne struct {
githubEventIssues
// Assigned is `issues` event with `assigned` action.
Assigned githubEventIssuesAssigned
// Closed is `issues` event with `closed` action.
Closed githubEventIssuesClosed
// Deleted is `issues` event with `deleted` action.
Deleted githubEventIssuesDeleted
// Demilestoned is `issues` event with `demilestoned` action.
Demilestoned githubEventIssuesDemilestoned
// Edited is `issues` event with `edited` action.
Edited githubEventIssuesEdited
// Labeled is `issues` event with `labeled` action.
Labeled githubEventIssuesLabeled
// Locked is `issues` event with `locked` action.
Locked githubEventIssuesLocked
// Milestoned is `issues` event with `milestoned` action.
Milestoned githubEventIssuesMilestoned
// Opened is `issues` event with `opened` action.
Opened githubEventIssuesOpened
// Pinned is `issues` event with `pinned` action.
Pinned githubEventIssuesPinned
// Reopened is `issues` event with `reopened` action.
Reopened githubEventIssuesReopened
// Transferred is `issues` event with `transferred` action.
Transferred githubEventIssuesTransferred
// Unassigned is `issues` event with `unassigned` action.
Unassigned githubEventIssuesUnassigned
// Unlabeled is `issues` event with `unlabeled` action.
Unlabeled githubEventIssuesUnlabeled
// Unlocked is `issues` event with `unlocked` action.
Unlocked githubEventIssuesUnlocked
// Unpinned is `issues` event with `unpinned` action.
Unpinned githubEventIssuesUnpinned
}
// GitHubIssuesContext is the context type for Issues event handler to process
type GitHubIssuesContext = ProbotContext[GitHubClient, github.IssuesEvent]
// Handler returns event handler function to process context
func (githubEventIssuesAllInOne) Handler(fn func(ctx GitHubIssuesContext)) Handler {
return EventHandlerFunc[GitHubClient, github.IssuesEvent](fn)
}
// githubEventIssues is the base event type of Issues
type githubEventIssues struct{}
// Type implement the WebhookEvent interface
func (githubEventIssues) Type() string { return "issues" }
// Action implement the WebhookEvent interface
func (githubEventIssues) Action() string { return "" }
// githubEventIssuesAssigned is the Assigned action of Issues event
type githubEventIssuesAssigned struct {
githubEventIssues
}
// Action implement the WebhookEvent interface
func (githubEventIssuesAssigned) Action() string { return "assigned" }
// githubEventIssuesClosed is the Closed action of Issues event
type githubEventIssuesClosed struct {
githubEventIssues
}
// Action implement the WebhookEvent interface
func (githubEventIssuesClosed) Action() string { return "closed" }
// githubEventIssuesDeleted is the Deleted action of Issues event
type githubEventIssuesDeleted struct {
githubEventIssues
}
// Action implement the WebhookEvent interface
func (githubEventIssuesDeleted) Action() string { return "deleted" }
// githubEventIssuesDemilestoned is the Demilestoned action of Issues event
type githubEventIssuesDemilestoned struct {
githubEventIssues
}
// Action implement the WebhookEvent interface
func (githubEventIssuesDemilestoned) Action() string { return "demilestoned" }
// githubEventIssuesEdited is the Edited action of Issues event
type githubEventIssuesEdited struct {
githubEventIssues
}