1
2
3
4
5
6
7
8 package github
9
10 import "encoding/json"
11
12
13
14 type RequestedAction struct {
15 Identifier string `json:"identifier"`
16 }
17
18
19
20
21
22 type BranchProtectionRuleEvent struct {
23 Action *string `json:"action,omitempty"`
24 Rule *BranchProtectionRule `json:"rule,omitempty"`
25 Changes *ProtectionChanges `json:"changes,omitempty"`
26 Repo *Repository `json:"repository,omitempty"`
27 Org *Organization `json:"organization,omitempty"`
28 Sender *User `json:"sender,omitempty"`
29 Installation *Installation `json:"installation,omitempty"`
30 }
31
32
33
34
35
36 type CheckRunEvent struct {
37 CheckRun *CheckRun `json:"check_run,omitempty"`
38
39 Action *string `json:"action,omitempty"`
40
41
42 Repo *Repository `json:"repository,omitempty"`
43 Org *Organization `json:"organization,omitempty"`
44 Sender *User `json:"sender,omitempty"`
45 Installation *Installation `json:"installation,omitempty"`
46
47
48 RequestedAction *RequestedAction `json:"requested_action,omitempty"`
49 }
50
51
52
53
54
55 type CheckSuiteEvent struct {
56 CheckSuite *CheckSuite `json:"check_suite,omitempty"`
57
58 Action *string `json:"action,omitempty"`
59
60
61 Repo *Repository `json:"repository,omitempty"`
62 Org *Organization `json:"organization,omitempty"`
63 Sender *User `json:"sender,omitempty"`
64 Installation *Installation `json:"installation,omitempty"`
65 }
66
67
68
69
70
71 type CommitCommentEvent struct {
72 Comment *RepositoryComment `json:"comment,omitempty"`
73
74
75 Action *string `json:"action,omitempty"`
76 Repo *Repository `json:"repository,omitempty"`
77 Sender *User `json:"sender,omitempty"`
78 Installation *Installation `json:"installation,omitempty"`
79 }
80
81
82
83
84
85
86
87 type ContentReferenceEvent struct {
88 Action *string `json:"action,omitempty"`
89 ContentReference *ContentReference `json:"content_reference,omitempty"`
90 Repo *Repository `json:"repository,omitempty"`
91 Sender *User `json:"sender,omitempty"`
92 Installation *Installation `json:"installation,omitempty"`
93 }
94
95
96
97
98
99
100
101
102
103 type CreateEvent struct {
104 Ref *string `json:"ref,omitempty"`
105
106 RefType *string `json:"ref_type,omitempty"`
107 MasterBranch *string `json:"master_branch,omitempty"`
108 Description *string `json:"description,omitempty"`
109 PusherType *string `json:"pusher_type,omitempty"`
110
111
112 Repo *Repository `json:"repository,omitempty"`
113 Org *Organization `json:"organization,omitempty"`
114 Sender *User `json:"sender,omitempty"`
115 Installation *Installation `json:"installation,omitempty"`
116 }
117
118
119
120
121
122
123
124
125 type DeleteEvent struct {
126 Ref *string `json:"ref,omitempty"`
127
128 RefType *string `json:"ref_type,omitempty"`
129
130
131 PusherType *string `json:"pusher_type,omitempty"`
132 Repo *Repository `json:"repository,omitempty"`
133 Sender *User `json:"sender,omitempty"`
134 Installation *Installation `json:"installation,omitempty"`
135 }
136
137
138
139
140
141 type DependabotAlertEvent struct {
142 Action *string `json:"action,omitempty"`
143 Alert *DependabotAlert `json:"alert,omitempty"`
144
145
146 Installation *Installation `json:"installation,omitempty"`
147 Enterprise *Enterprise `json:"enterprise,omitempty"`
148 Repo *Repository `json:"repository,omitempty"`
149 Sender *User `json:"sender,omitempty"`
150
151
152
153 Organization *Organization `json:"organization,omitempty"`
154 }
155
156
157
158
159
160 type DeployKeyEvent struct {
161
162
163 Action *string `json:"action,omitempty"`
164
165
166 Key *Key `json:"key,omitempty"`
167
168
169 Repo *Repository `json:"repository,omitempty"`
170
171
172
173 Organization *Organization `json:"organization,omitempty"`
174
175
176 Sender *User `json:"sender,omitempty"`
177 Installation *Installation `json:"installation,omitempty"`
178 }
179
180
181
182
183
184
185
186 type DeploymentEvent struct {
187 Deployment *Deployment `json:"deployment,omitempty"`
188 Repo *Repository `json:"repository,omitempty"`
189 Workflow *Workflow `json:"workflow,omitempty"`
190 WorkflowRun *WorkflowRun `json:"workflow_run,omitempty"`
191
192
193 Sender *User `json:"sender,omitempty"`
194 Installation *Installation `json:"installation,omitempty"`
195 }
196
197
198
199
200
201 type DeploymentProtectionRuleEvent struct {
202 Action *string `json:"action,omitempty"`
203 Environment *string `json:"environment,omitempty"`
204 Event *string `json:"event,omitempty"`
205
206
207 DeploymentCallbackURL *string `json:"deployment_callback_url,omitempty"`
208 Deployment *Deployment `json:"deployment,omitempty"`
209 Repo *Repository `json:"repository,omitempty"`
210 Organization *Organization `json:"organization,omitempty"`
211 PullRequests []*PullRequest `json:"pull_requests,omitempty"`
212 Sender *User `json:"sender,omitempty"`
213 Installation *Installation `json:"installation,omitempty"`
214 }
215
216
217
218
219
220
221
222 type DeploymentStatusEvent struct {
223 Deployment *Deployment `json:"deployment,omitempty"`
224 DeploymentStatus *DeploymentStatus `json:"deployment_status,omitempty"`
225 Repo *Repository `json:"repository,omitempty"`
226
227
228 Sender *User `json:"sender,omitempty"`
229 Installation *Installation `json:"installation,omitempty"`
230 }
231
232
233
234
235
236 type DiscussionCommentEvent struct {
237
238
239 Action *string `json:"action,omitempty"`
240 Discussion *Discussion `json:"discussion,omitempty"`
241 Comment *CommentDiscussion `json:"comment,omitempty"`
242 Repo *Repository `json:"repository,omitempty"`
243 Org *Organization `json:"organization,omitempty"`
244 Sender *User `json:"sender,omitempty"`
245 Installation *Installation `json:"installation,omitempty"`
246 }
247
248
249 type CommentDiscussion struct {
250 AuthorAssociation *string `json:"author_association,omitempty"`
251 Body *string `json:"body,omitempty"`
252 ChildCommentCount *int `json:"child_comment_count,omitempty"`
253 CreatedAt *Timestamp `json:"created_at,omitempty"`
254 DiscussionID *int64 `json:"discussion_id,omitempty"`
255 HTMLURL *string `json:"html_url,omitempty"`
256 ID *int64 `json:"id,omitempty"`
257 NodeID *string `json:"node_id,omitempty"`
258 ParentID *int64 `json:"parent_id,omitempty"`
259 Reactions *Reactions `json:"reactions,omitempty"`
260 RepositoryURL *string `json:"repository_url,omitempty"`
261 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
262 User *User `json:"user,omitempty"`
263 }
264
265
266
267
268
269 type DiscussionEvent struct {
270
271
272
273 Action *string `json:"action,omitempty"`
274 Discussion *Discussion `json:"discussion,omitempty"`
275 Repo *Repository `json:"repository,omitempty"`
276 Org *Organization `json:"organization,omitempty"`
277 Sender *User `json:"sender,omitempty"`
278 Installation *Installation `json:"installation,omitempty"`
279 }
280
281
282 type Discussion struct {
283 RepositoryURL *string `json:"repository_url,omitempty"`
284 DiscussionCategory *DiscussionCategory `json:"category,omitempty"`
285 AnswerHTMLURL *string `json:"answer_html_url,omitempty"`
286 AnswerChosenAt *Timestamp `json:"answer_chosen_at,omitempty"`
287 AnswerChosenBy *string `json:"answer_chosen_by,omitempty"`
288 HTMLURL *string `json:"html_url,omitempty"`
289 ID *int64 `json:"id,omitempty"`
290 NodeID *string `json:"node_id,omitempty"`
291 Number *int `json:"number,omitempty"`
292 Title *string `json:"title,omitempty"`
293 User *User `json:"user,omitempty"`
294 State *string `json:"state,omitempty"`
295 Locked *bool `json:"locked,omitempty"`
296 Comments *int `json:"comments,omitempty"`
297 CreatedAt *Timestamp `json:"created_at,omitempty"`
298 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
299 AuthorAssociation *string `json:"author_association,omitempty"`
300 ActiveLockReason *string `json:"active_lock_reason,omitempty"`
301 Body *string `json:"body,omitempty"`
302 }
303
304
305 type DiscussionCategory struct {
306 ID *int64 `json:"id,omitempty"`
307 NodeID *string `json:"node_id,omitempty"`
308 RepositoryID *int64 `json:"repository_id,omitempty"`
309 Emoji *string `json:"emoji,omitempty"`
310 Name *string `json:"name,omitempty"`
311 Description *string `json:"description,omitempty"`
312 CreatedAt *Timestamp `json:"created_at,omitempty"`
313 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
314 Slug *string `json:"slug,omitempty"`
315 IsAnswerable *bool `json:"is_answerable,omitempty"`
316 }
317
318
319
320
321
322 type ForkEvent struct {
323
324 Forkee *Repository `json:"forkee,omitempty"`
325
326
327 Repo *Repository `json:"repository,omitempty"`
328 Sender *User `json:"sender,omitempty"`
329 Installation *Installation `json:"installation,omitempty"`
330 }
331
332
333
334
335
336 type GitHubAppAuthorizationEvent struct {
337
338 Action *string `json:"action,omitempty"`
339
340
341 Sender *User `json:"sender,omitempty"`
342 Installation *Installation `json:"installation,omitempty"`
343 }
344
345
346 type Page struct {
347 PageName *string `json:"page_name,omitempty"`
348 Title *string `json:"title,omitempty"`
349 Summary *string `json:"summary,omitempty"`
350 Action *string `json:"action,omitempty"`
351 SHA *string `json:"sha,omitempty"`
352 HTMLURL *string `json:"html_url,omitempty"`
353 }
354
355
356
357
358
359 type GollumEvent struct {
360 Pages []*Page `json:"pages,omitempty"`
361
362
363 Repo *Repository `json:"repository,omitempty"`
364 Sender *User `json:"sender,omitempty"`
365 Installation *Installation `json:"installation,omitempty"`
366 }
367
368
369
370 type EditChange struct {
371 Title *EditTitle `json:"title,omitempty"`
372 Body *EditBody `json:"body,omitempty"`
373 Base *EditBase `json:"base,omitempty"`
374 Repo *EditRepo `json:"repository,omitempty"`
375 Owner *EditOwner `json:"owner,omitempty"`
376 }
377
378
379 type EditTitle struct {
380 From *string `json:"from,omitempty"`
381 }
382
383
384 type EditBody struct {
385 From *string `json:"from,omitempty"`
386 }
387
388
389 type EditBase struct {
390 Ref *EditRef `json:"ref,omitempty"`
391 SHA *EditSHA `json:"sha,omitempty"`
392 }
393
394
395 type EditRef struct {
396 From *string `json:"from,omitempty"`
397 }
398
399
400 type EditRepo struct {
401 Name *RepoName `json:"name,omitempty"`
402 }
403
404
405 type EditOwner struct {
406 OwnerInfo *OwnerInfo `json:"from,omitempty"`
407 }
408
409
410 type OwnerInfo struct {
411 User *User `json:"user,omitempty"`
412 Org *User `json:"organization,omitempty"`
413 }
414
415
416 type RepoName struct {
417 From *string `json:"from,omitempty"`
418 }
419
420
421 type EditSHA struct {
422 From *string `json:"from,omitempty"`
423 }
424
425
426 type ProjectChange struct {
427 Name *ProjectName `json:"name,omitempty"`
428 Body *ProjectBody `json:"body,omitempty"`
429 }
430
431
432 type ProjectName struct {
433 From *string `json:"from,omitempty"`
434 }
435
436
437 type ProjectBody struct {
438 From *string `json:"from,omitempty"`
439 }
440
441
442 type ProjectCardChange struct {
443 Note *ProjectCardNote `json:"note,omitempty"`
444 }
445
446
447 type ProjectCardNote struct {
448 From *string `json:"from,omitempty"`
449 }
450
451
452 type ProjectColumnChange struct {
453 Name *ProjectColumnName `json:"name,omitempty"`
454 }
455
456
457 type ProjectColumnName struct {
458 From *string `json:"from,omitempty"`
459 }
460
461
462 type TeamChange struct {
463 Description *TeamDescription `json:"description,omitempty"`
464 Name *TeamName `json:"name,omitempty"`
465 Privacy *TeamPrivacy `json:"privacy,omitempty"`
466 Repository *TeamRepository `json:"repository,omitempty"`
467 }
468
469
470 type TeamDescription struct {
471 From *string `json:"from,omitempty"`
472 }
473
474
475 type TeamName struct {
476 From *string `json:"from,omitempty"`
477 }
478
479
480 type TeamPrivacy struct {
481 From *string `json:"from,omitempty"`
482 }
483
484
485 type TeamRepository struct {
486 Permissions *TeamPermissions `json:"permissions,omitempty"`
487 }
488
489
490 type TeamPermissions struct {
491 From *TeamPermissionsFrom `json:"from,omitempty"`
492 }
493
494
495 type TeamPermissionsFrom struct {
496 Admin *bool `json:"admin,omitempty"`
497 Pull *bool `json:"pull,omitempty"`
498 Push *bool `json:"push,omitempty"`
499 }
500
501
502
503
504
505
506 type InstallationEvent struct {
507
508 Action *string `json:"action,omitempty"`
509 Repositories []*Repository `json:"repositories,omitempty"`
510 Sender *User `json:"sender,omitempty"`
511 Installation *Installation `json:"installation,omitempty"`
512 Requester *User `json:"requester,omitempty"`
513 }
514
515
516
517
518
519 type InstallationRepositoriesEvent struct {
520
521 Action *string `json:"action,omitempty"`
522 RepositoriesAdded []*Repository `json:"repositories_added,omitempty"`
523 RepositoriesRemoved []*Repository `json:"repositories_removed,omitempty"`
524 RepositorySelection *string `json:"repository_selection,omitempty"`
525 Sender *User `json:"sender,omitempty"`
526 Installation *Installation `json:"installation,omitempty"`
527 }
528
529
530 type InstallationLoginChange struct {
531 From *string `json:"from,omitempty"`
532 }
533
534
535 type InstallationSlugChange struct {
536 From *string `json:"from,omitempty"`
537 }
538
539
540 type InstallationChanges struct {
541 Login *InstallationLoginChange `json:"login,omitempty"`
542 Slug *InstallationSlugChange `json:"slug,omitempty"`
543 }
544
545
546
547
548
549 type InstallationTargetEvent struct {
550 Account *User `json:"account,omitempty"`
551 Action *string `json:"action,omitempty"`
552 Changes *InstallationChanges `json:"changes,omitempty"`
553 Enterprise *Enterprise `json:"enterprise,omitempty"`
554 Installation *Installation `json:"installation,omitempty"`
555 Organization *Organization `json:"organization,omitempty"`
556 Repository *Repository `json:"repository,omitempty"`
557 Sender *User `json:"sender,omitempty"`
558 TargetType *string `json:"target_type,omitempty"`
559 }
560
561
562
563
564
565
566 type IssueCommentEvent struct {
567
568
569 Action *string `json:"action,omitempty"`
570 Issue *Issue `json:"issue,omitempty"`
571 Comment *IssueComment `json:"comment,omitempty"`
572
573
574 Changes *EditChange `json:"changes,omitempty"`
575 Repo *Repository `json:"repository,omitempty"`
576 Sender *User `json:"sender,omitempty"`
577 Installation *Installation `json:"installation,omitempty"`
578
579
580
581 Organization *Organization `json:"organization,omitempty"`
582 }
583
584
585
586
587
588
589
590 type IssuesEvent struct {
591
592
593
594
595 Action *string `json:"action,omitempty"`
596 Issue *Issue `json:"issue,omitempty"`
597 Assignee *User `json:"assignee,omitempty"`
598 Label *Label `json:"label,omitempty"`
599
600
601 Changes *EditChange `json:"changes,omitempty"`
602 Repo *Repository `json:"repository,omitempty"`
603 Sender *User `json:"sender,omitempty"`
604 Installation *Installation `json:"installation,omitempty"`
605 Milestone *Milestone `json:"milestone,omitempty"`
606 }
607
608
609
610
611
612 type LabelEvent struct {
613
614
615 Action *string `json:"action,omitempty"`
616 Label *Label `json:"label,omitempty"`
617 Changes *EditChange `json:"changes,omitempty"`
618
619
620 Repo *Repository `json:"repository,omitempty"`
621 Org *Organization `json:"organization,omitempty"`
622 Sender *User `json:"sender,omitempty"`
623 Installation *Installation `json:"installation,omitempty"`
624 }
625
626
627
628
629
630
631 type MarketplacePurchaseEvent struct {
632
633
634 Action *string `json:"action,omitempty"`
635
636
637 EffectiveDate *Timestamp `json:"effective_date,omitempty"`
638 MarketplacePurchase *MarketplacePurchase `json:"marketplace_purchase,omitempty"`
639 PreviousMarketplacePurchase *MarketplacePurchase `json:"previous_marketplace_purchase,omitempty"`
640 Sender *User `json:"sender,omitempty"`
641 Installation *Installation `json:"installation,omitempty"`
642 }
643
644
645
646
647
648 type MemberEvent struct {
649
650 Action *string `json:"action,omitempty"`
651 Member *User `json:"member,omitempty"`
652
653
654 Repo *Repository `json:"repository,omitempty"`
655 Sender *User `json:"sender,omitempty"`
656 Installation *Installation `json:"installation,omitempty"`
657 }
658
659
660
661
662
663
664
665
666 type MembershipEvent struct {
667
668 Action *string `json:"action,omitempty"`
669
670 Scope *string `json:"scope,omitempty"`
671 Member *User `json:"member,omitempty"`
672 Team *Team `json:"team,omitempty"`
673
674
675 Org *Organization `json:"organization,omitempty"`
676 Sender *User `json:"sender,omitempty"`
677 Installation *Installation `json:"installation,omitempty"`
678 }
679
680
681 type MergeGroup struct {
682
683 HeadSHA *string `json:"head_sha,omitempty"`
684
685 HeadRef *string `json:"head_ref,omitempty"`
686
687 BaseSHA *string `json:"base_sha,omitempty"`
688
689 BaseRef *string `json:"base_ref,omitempty"`
690
691 HeadCommit *Commit `json:"head_commit,omitempty"`
692 }
693
694
695
696
697
698 type MergeGroupEvent struct {
699
700 Action *string `json:"action,omitempty"`
701
702 MergeGroup *MergeGroup `json:"merge_group,omitempty"`
703
704
705 Repo *Repository `json:"repository,omitempty"`
706 Org *Organization `json:"organization,omitempty"`
707 Installation *Installation `json:"installation,omitempty"`
708 Sender *User `json:"sender,omitempty"`
709 }
710
711
712
713
714
715
716
717 type MetaEvent struct {
718
719 Action *string `json:"action,omitempty"`
720
721 HookID *int64 `json:"hook_id,omitempty"`
722
723
724
725 Hook *Hook `json:"hook,omitempty"`
726
727
728 Repo *Repository `json:"repository,omitempty"`
729 Org *Organization `json:"organization,omitempty"`
730 Sender *User `json:"sender,omitempty"`
731 Installation *Installation `json:"installation,omitempty"`
732 }
733
734
735
736
737
738 type MilestoneEvent struct {
739
740
741 Action *string `json:"action,omitempty"`
742 Milestone *Milestone `json:"milestone,omitempty"`
743
744
745 Changes *EditChange `json:"changes,omitempty"`
746 Repo *Repository `json:"repository,omitempty"`
747 Sender *User `json:"sender,omitempty"`
748 Org *Organization `json:"organization,omitempty"`
749 Installation *Installation `json:"installation,omitempty"`
750 }
751
752
753
754
755
756
757
758 type OrganizationEvent struct {
759
760
761 Action *string `json:"action,omitempty"`
762
763
764 Invitation *Invitation `json:"invitation,omitempty"`
765
766
767
768 Membership *Membership `json:"membership,omitempty"`
769
770 Organization *Organization `json:"organization,omitempty"`
771 Sender *User `json:"sender,omitempty"`
772 Installation *Installation `json:"installation,omitempty"`
773 }
774
775
776
777
778
779 type OrgBlockEvent struct {
780
781
782 Action *string `json:"action,omitempty"`
783 BlockedUser *User `json:"blocked_user,omitempty"`
784 Organization *Organization `json:"organization,omitempty"`
785 Sender *User `json:"sender,omitempty"`
786
787
788 Installation *Installation `json:"installation,omitempty"`
789 }
790
791
792
793
794
795
796
797 type PackageEvent struct {
798
799
800 Action *string `json:"action,omitempty"`
801 Package *Package `json:"package,omitempty"`
802 Repo *Repository `json:"repository,omitempty"`
803 Org *Organization `json:"organization,omitempty"`
804 Sender *User `json:"sender,omitempty"`
805
806
807 Installation *Installation `json:"installation,omitempty"`
808 }
809
810
811
812
813
814
815
816
817
818
819
820 type PageBuildEvent struct {
821 Build *PagesBuild `json:"build,omitempty"`
822
823
824 ID *int64 `json:"id,omitempty"`
825 Repo *Repository `json:"repository,omitempty"`
826 Sender *User `json:"sender,omitempty"`
827 Installation *Installation `json:"installation,omitempty"`
828 }
829
830
831
832
833
834
835
836 type PersonalAccessTokenRequestEvent struct {
837
838
839 Action *string `json:"action,omitempty"`
840 PersonalAccessTokenRequest *PersonalAccessTokenRequest `json:"personal_access_token_request,omitempty"`
841 Org *Organization `json:"organization,omitempty"`
842 Sender *User `json:"sender,omitempty"`
843 Installation *Installation `json:"installation,omitempty"`
844 }
845
846
847 type PersonalAccessTokenRequest struct {
848
849
850
851 ID *int64 `json:"id,omitempty"`
852 Owner *User `json:"owner,omitempty"`
853
854
855 PermissionsAdded *PersonalAccessTokenPermissions `json:"permissions_added,omitempty"`
856
857
858
859 PermissionsUpgraded *PersonalAccessTokenPermissions `json:"permissions_upgraded,omitempty"`
860
861
862
863 PermissionsResult *PersonalAccessTokenPermissions `json:"permissions_result,omitempty"`
864
865
866
867 RepositorySelection *string `json:"repository_selection,omitempty"`
868
869
870
871 RepositoryCount *int64 `json:"repository_count,omitempty"`
872
873
874
875 Repositories []*Repository `json:"repositories,omitempty"`
876
877
878 CreatedAt *Timestamp `json:"created_at,omitempty"`
879
880
881 TokenExpired *bool `json:"token_expired,omitempty"`
882
883
884 TokenExpiresAt *Timestamp `json:"token_expires_at,omitempty"`
885
886
887 TokenLastUsedAt *Timestamp `json:"token_last_used_at,omitempty"`
888 }
889
890
891
892 type PersonalAccessTokenPermissions struct {
893 Org map[string]string `json:"organization,omitempty"`
894 Repo map[string]string `json:"repository,omitempty"`
895 Other map[string]string `json:"other,omitempty"`
896 }
897
898
899
900
901 type PingEvent struct {
902
903 Zen *string `json:"zen,omitempty"`
904
905 HookID *int64 `json:"hook_id,omitempty"`
906
907 Hook *Hook `json:"hook,omitempty"`
908
909
910 Repo *Repository `json:"repository,omitempty"`
911 Org *Organization `json:"organization,omitempty"`
912 Sender *User `json:"sender,omitempty"`
913 Installation *Installation `json:"installation,omitempty"`
914 }
915
916
917
918
919
920 type ProjectEvent struct {
921 Action *string `json:"action,omitempty"`
922 Changes *ProjectChange `json:"changes,omitempty"`
923 Project *Project `json:"project,omitempty"`
924
925
926 Repo *Repository `json:"repository,omitempty"`
927 Org *Organization `json:"organization,omitempty"`
928 Sender *User `json:"sender,omitempty"`
929 Installation *Installation `json:"installation,omitempty"`
930 }
931
932
933
934
935
936 type ProjectCardEvent struct {
937 Action *string `json:"action,omitempty"`
938 Changes *ProjectCardChange `json:"changes,omitempty"`
939 AfterID *int64 `json:"after_id,omitempty"`
940 ProjectCard *ProjectCard `json:"project_card,omitempty"`
941
942
943 Repo *Repository `json:"repository,omitempty"`
944 Org *Organization `json:"organization,omitempty"`
945 Sender *User `json:"sender,omitempty"`
946 Installation *Installation `json:"installation,omitempty"`
947 }
948
949
950
951
952
953 type ProjectColumnEvent struct {
954 Action *string `json:"action,omitempty"`
955 Changes *ProjectColumnChange `json:"changes,omitempty"`
956 AfterID *int64 `json:"after_id,omitempty"`
957 ProjectColumn *ProjectColumn `json:"project_column,omitempty"`
958
959
960 Repo *Repository `json:"repository,omitempty"`
961 Org *Organization `json:"organization,omitempty"`
962 Sender *User `json:"sender,omitempty"`
963 Installation *Installation `json:"installation,omitempty"`
964 }
965
966
967
968
969
970 type ProjectV2Event struct {
971 Action *string `json:"action,omitempty"`
972 ProjectsV2 *ProjectsV2 `json:"projects_v2,omitempty"`
973
974
975 Installation *Installation `json:"installation,omitempty"`
976 Org *Organization `json:"organization,omitempty"`
977 Sender *User `json:"sender,omitempty"`
978 }
979
980
981 type ProjectsV2 struct {
982 ID *int64 `json:"id,omitempty"`
983 NodeID *string `json:"node_id,omitempty"`
984 Owner *User `json:"owner,omitempty"`
985 Creator *User `json:"creator,omitempty"`
986 Title *string `json:"title,omitempty"`
987 Description *string `json:"description,omitempty"`
988 Public *bool `json:"public,omitempty"`
989 ClosedAt *Timestamp `json:"closed_at,omitempty"`
990 CreatedAt *Timestamp `json:"created_at,omitempty"`
991 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
992 DeletedAt *Timestamp `json:"deleted_at,omitempty"`
993 Number *int `json:"number,omitempty"`
994 ShortDescription *string `json:"short_description,omitempty"`
995 DeletedBy *User `json:"deleted_by,omitempty"`
996 }
997
998
999
1000
1001
1002 type ProjectV2ItemEvent struct {
1003 Action *string `json:"action,omitempty"`
1004 Changes *ProjectV2ItemChange `json:"changes,omitempty"`
1005 ProjectV2Item *ProjectV2Item `json:"projects_v2_item,omitempty"`
1006
1007
1008 Installation *Installation `json:"installation,omitempty"`
1009 Org *Organization `json:"organization,omitempty"`
1010 Sender *User `json:"sender,omitempty"`
1011 }
1012
1013
1014 type ProjectV2ItemChange struct {
1015 ArchivedAt *ArchivedAt `json:"archived_at,omitempty"`
1016 }
1017
1018
1019 type ArchivedAt struct {
1020 From *Timestamp `json:"from,omitempty"`
1021 To *Timestamp `json:"to,omitempty"`
1022 }
1023
1024
1025 type ProjectV2Item struct {
1026 ID *int64 `json:"id,omitempty"`
1027 NodeID *string `json:"node_id,omitempty"`
1028 ProjectNodeID *string `json:"project_node_id,omitempty"`
1029 ContentNodeID *string `json:"content_node_id,omitempty"`
1030 ContentType *string `json:"content_type,omitempty"`
1031 Creator *User `json:"creator,omitempty"`
1032 CreatedAt *Timestamp `json:"created_at,omitempty"`
1033 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1034 ArchivedAt *Timestamp `json:"archived_at,omitempty"`
1035 }
1036
1037
1038
1039
1040
1041
1042 type PublicEvent struct {
1043
1044 Repo *Repository `json:"repository,omitempty"`
1045 Sender *User `json:"sender,omitempty"`
1046 Installation *Installation `json:"installation,omitempty"`
1047 }
1048
1049
1050
1051
1052
1053
1054
1055 type PullRequestEvent struct {
1056
1057
1058
1059
1060
1061
1062
1063 Action *string `json:"action,omitempty"`
1064 Assignee *User `json:"assignee,omitempty"`
1065 Number *int `json:"number,omitempty"`
1066 PullRequest *PullRequest `json:"pull_request,omitempty"`
1067
1068
1069 Changes *EditChange `json:"changes,omitempty"`
1070
1071
1072
1073 RequestedReviewer *User `json:"requested_reviewer,omitempty"`
1074
1075
1076 RequestedTeam *Team `json:"requested_team,omitempty"`
1077 Repo *Repository `json:"repository,omitempty"`
1078 Sender *User `json:"sender,omitempty"`
1079 Installation *Installation `json:"installation,omitempty"`
1080 Label *Label `json:"label,omitempty"`
1081
1082
1083
1084 Organization *Organization `json:"organization,omitempty"`
1085
1086
1087 Before *string `json:"before,omitempty"`
1088 After *string `json:"after,omitempty"`
1089 }
1090
1091
1092
1093
1094
1095
1096 type PullRequestReviewEvent struct {
1097
1098 Action *string `json:"action,omitempty"`
1099 Review *PullRequestReview `json:"review,omitempty"`
1100 PullRequest *PullRequest `json:"pull_request,omitempty"`
1101
1102
1103 Repo *Repository `json:"repository,omitempty"`
1104 Sender *User `json:"sender,omitempty"`
1105 Installation *Installation `json:"installation,omitempty"`
1106
1107
1108
1109 Organization *Organization `json:"organization,omitempty"`
1110 }
1111
1112
1113
1114
1115
1116
1117 type PullRequestReviewCommentEvent struct {
1118
1119
1120 Action *string `json:"action,omitempty"`
1121 PullRequest *PullRequest `json:"pull_request,omitempty"`
1122 Comment *PullRequestComment `json:"comment,omitempty"`
1123
1124
1125 Changes *EditChange `json:"changes,omitempty"`
1126 Repo *Repository `json:"repository,omitempty"`
1127 Sender *User `json:"sender,omitempty"`
1128 Installation *Installation `json:"installation,omitempty"`
1129 }
1130
1131
1132
1133
1134
1135
1136 type PullRequestReviewThreadEvent struct {
1137
1138
1139 Action *string `json:"action,omitempty"`
1140 Thread *PullRequestThread `json:"thread,omitempty"`
1141 PullRequest *PullRequest `json:"pull_request,omitempty"`
1142
1143
1144 Repo *Repository `json:"repository,omitempty"`
1145 Sender *User `json:"sender,omitempty"`
1146 Installation *Installation `json:"installation,omitempty"`
1147 }
1148
1149
1150
1151
1152
1153
1154
1155 type PullRequestTargetEvent struct {
1156
1157
1158
1159
1160
1161
1162
1163 Action *string `json:"action,omitempty"`
1164 Assignee *User `json:"assignee,omitempty"`
1165 Number *int `json:"number,omitempty"`
1166 PullRequest *PullRequest `json:"pull_request,omitempty"`
1167
1168
1169 Changes *EditChange `json:"changes,omitempty"`
1170
1171
1172
1173 RequestedReviewer *User `json:"requested_reviewer,omitempty"`
1174
1175
1176 RequestedTeam *Team `json:"requested_team,omitempty"`
1177 Repo *Repository `json:"repository,omitempty"`
1178 Sender *User `json:"sender,omitempty"`
1179 Installation *Installation `json:"installation,omitempty"`
1180 Label *Label `json:"label,omitempty"`
1181
1182
1183
1184 Organization *Organization `json:"organization,omitempty"`
1185
1186
1187 Before *string `json:"before,omitempty"`
1188 After *string `json:"after,omitempty"`
1189 }
1190
1191
1192
1193
1194 type PushEvent struct {
1195 PushID *int64 `json:"push_id,omitempty"`
1196 Head *string `json:"head,omitempty"`
1197 Ref *string `json:"ref,omitempty"`
1198 Size *int `json:"size,omitempty"`
1199 Commits []*HeadCommit `json:"commits,omitempty"`
1200 Before *string `json:"before,omitempty"`
1201 DistinctSize *int `json:"distinct_size,omitempty"`
1202
1203
1204 Action *string `json:"action,omitempty"`
1205 After *string `json:"after,omitempty"`
1206 Created *bool `json:"created,omitempty"`
1207 Deleted *bool `json:"deleted,omitempty"`
1208 Forced *bool `json:"forced,omitempty"`
1209 BaseRef *string `json:"base_ref,omitempty"`
1210 Compare *string `json:"compare,omitempty"`
1211 Repo *PushEventRepository `json:"repository,omitempty"`
1212 HeadCommit *HeadCommit `json:"head_commit,omitempty"`
1213 Pusher *User `json:"pusher,omitempty"`
1214 Sender *User `json:"sender,omitempty"`
1215 Installation *Installation `json:"installation,omitempty"`
1216
1217
1218
1219 Organization *Organization `json:"organization,omitempty"`
1220 }
1221
1222 func (p PushEvent) String() string {
1223 return Stringify(p)
1224 }
1225
1226
1227 type HeadCommit struct {
1228 Message *string `json:"message,omitempty"`
1229 Author *CommitAuthor `json:"author,omitempty"`
1230 URL *string `json:"url,omitempty"`
1231 Distinct *bool `json:"distinct,omitempty"`
1232
1233
1234 SHA *string `json:"sha,omitempty"`
1235
1236
1237 ID *string `json:"id,omitempty"`
1238 TreeID *string `json:"tree_id,omitempty"`
1239 Timestamp *Timestamp `json:"timestamp,omitempty"`
1240 Committer *CommitAuthor `json:"committer,omitempty"`
1241 Added []string `json:"added,omitempty"`
1242 Removed []string `json:"removed,omitempty"`
1243 Modified []string `json:"modified,omitempty"`
1244 }
1245
1246 func (h HeadCommit) String() string {
1247 return Stringify(h)
1248 }
1249
1250
1251 type PushEventRepository struct {
1252 ID *int64 `json:"id,omitempty"`
1253 NodeID *string `json:"node_id,omitempty"`
1254 Name *string `json:"name,omitempty"`
1255 FullName *string `json:"full_name,omitempty"`
1256 Owner *User `json:"owner,omitempty"`
1257 Private *bool `json:"private,omitempty"`
1258 Description *string `json:"description,omitempty"`
1259 Fork *bool `json:"fork,omitempty"`
1260 CreatedAt *Timestamp `json:"created_at,omitempty"`
1261 PushedAt *Timestamp `json:"pushed_at,omitempty"`
1262 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1263 Homepage *string `json:"homepage,omitempty"`
1264 PullsURL *string `json:"pulls_url,omitempty"`
1265 Size *int `json:"size,omitempty"`
1266 StargazersCount *int `json:"stargazers_count,omitempty"`
1267 WatchersCount *int `json:"watchers_count,omitempty"`
1268 Language *string `json:"language,omitempty"`
1269 HasIssues *bool `json:"has_issues,omitempty"`
1270 HasDownloads *bool `json:"has_downloads,omitempty"`
1271 HasWiki *bool `json:"has_wiki,omitempty"`
1272 HasPages *bool `json:"has_pages,omitempty"`
1273 ForksCount *int `json:"forks_count,omitempty"`
1274 Archived *bool `json:"archived,omitempty"`
1275 Disabled *bool `json:"disabled,omitempty"`
1276 OpenIssuesCount *int `json:"open_issues_count,omitempty"`
1277 DefaultBranch *string `json:"default_branch,omitempty"`
1278 MasterBranch *string `json:"master_branch,omitempty"`
1279 Organization *string `json:"organization,omitempty"`
1280 URL *string `json:"url,omitempty"`
1281 ArchiveURL *string `json:"archive_url,omitempty"`
1282 HTMLURL *string `json:"html_url,omitempty"`
1283 StatusesURL *string `json:"statuses_url,omitempty"`
1284 GitURL *string `json:"git_url,omitempty"`
1285 SSHURL *string `json:"ssh_url,omitempty"`
1286 CloneURL *string `json:"clone_url,omitempty"`
1287 SVNURL *string `json:"svn_url,omitempty"`
1288 Topics []string `json:"topics,omitempty"`
1289 }
1290
1291
1292 type PushEventRepoOwner struct {
1293 Name *string `json:"name,omitempty"`
1294 Email *string `json:"email,omitempty"`
1295 }
1296
1297
1298
1299
1300
1301
1302 type ReleaseEvent struct {
1303
1304
1305 Action *string `json:"action,omitempty"`
1306 Release *RepositoryRelease `json:"release,omitempty"`
1307
1308
1309 Repo *Repository `json:"repository,omitempty"`
1310 Sender *User `json:"sender,omitempty"`
1311 Installation *Installation `json:"installation,omitempty"`
1312 }
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 type RepositoryEvent struct {
1324
1325
1326
1327 Action *string `json:"action,omitempty"`
1328 Repo *Repository `json:"repository,omitempty"`
1329
1330
1331 Changes *EditChange `json:"changes,omitempty"`
1332 Org *Organization `json:"organization,omitempty"`
1333 Sender *User `json:"sender,omitempty"`
1334 Installation *Installation `json:"installation,omitempty"`
1335 }
1336
1337
1338
1339
1340 type RepositoryDispatchEvent struct {
1341
1342 Action *string `json:"action,omitempty"`
1343 Branch *string `json:"branch,omitempty"`
1344 ClientPayload json.RawMessage `json:"client_payload,omitempty"`
1345 Repo *Repository `json:"repository,omitempty"`
1346
1347
1348 Org *Organization `json:"organization,omitempty"`
1349 Sender *User `json:"sender,omitempty"`
1350 Installation *Installation `json:"installation,omitempty"`
1351 }
1352
1353
1354
1355
1356 type RepositoryImportEvent struct {
1357
1358 Status *string `json:"status,omitempty"`
1359 Repo *Repository `json:"repository,omitempty"`
1360 Org *Organization `json:"organization,omitempty"`
1361 Sender *User `json:"sender,omitempty"`
1362 }
1363
1364
1365
1366
1367 type RepositoryVulnerabilityAlertEvent struct {
1368
1369 Action *string `json:"action,omitempty"`
1370
1371
1372 Alert *RepositoryVulnerabilityAlert `json:"alert,omitempty"`
1373
1374
1375 Repository *Repository `json:"repository,omitempty"`
1376
1377
1378 Installation *Installation `json:"installation,omitempty"`
1379
1380
1381 Sender *User `json:"sender,omitempty"`
1382 }
1383
1384
1385 type RepositoryVulnerabilityAlert struct {
1386 ID *int64 `json:"id,omitempty"`
1387 AffectedRange *string `json:"affected_range,omitempty"`
1388 AffectedPackageName *string `json:"affected_package_name,omitempty"`
1389 ExternalReference *string `json:"external_reference,omitempty"`
1390 ExternalIdentifier *string `json:"external_identifier,omitempty"`
1391 GitHubSecurityAdvisoryID *string `json:"ghsa_id,omitempty"`
1392 Severity *string `json:"severity,omitempty"`
1393 CreatedAt *Timestamp `json:"created_at,omitempty"`
1394 FixedIn *string `json:"fixed_in,omitempty"`
1395 Dismisser *User `json:"dismisser,omitempty"`
1396 DismissReason *string `json:"dismiss_reason,omitempty"`
1397 DismissedAt *Timestamp `json:"dismissed_at,omitempty"`
1398 }
1399
1400
1401
1402
1403
1404 type SecretScanningAlertEvent struct {
1405
1406 Action *string `json:"action,omitempty"`
1407
1408
1409 Alert *SecretScanningAlert `json:"alert,omitempty"`
1410
1411
1412 Sender *User `json:"sender,omitempty"`
1413
1414 Repo *Repository `json:"repository,omitempty"`
1415 Organization *Organization `json:"organization,omitempty"`
1416 Enterprise *Enterprise `json:"enterprise,omitempty"`
1417 Installation *Installation `json:"installation,omitempty"`
1418 }
1419
1420
1421
1422
1423
1424 type SecurityAndAnalysisEvent struct {
1425 Changes *SecurityAndAnalysisChange `json:"changes,omitempty"`
1426 Enterprise *Enterprise `json:"enterprise,omitempty"`
1427 Installation *Installation `json:"installation,omitempty"`
1428 Organization *Organization `json:"organization,omitempty"`
1429 Repository *Repository `json:"repository,omitempty"`
1430 Sender *User `json:"sender,omitempty"`
1431 }
1432
1433
1434
1435 type SecurityAndAnalysisChange struct {
1436 From *SecurityAndAnalysisChangeFrom `json:"from,omitempty"`
1437 }
1438
1439
1440
1441 type SecurityAndAnalysisChangeFrom struct {
1442 SecurityAndAnalysis *SecurityAndAnalysis `json:"security_and_analysis,omitempty"`
1443 }
1444
1445
1446
1447
1448
1449 type StarEvent struct {
1450
1451 Action *string `json:"action,omitempty"`
1452
1453
1454 StarredAt *Timestamp `json:"starred_at,omitempty"`
1455
1456
1457 Org *Organization `json:"organization,omitempty"`
1458 Repo *Repository `json:"repository,omitempty"`
1459 Sender *User `json:"sender,omitempty"`
1460 Installation *Installation `json:"installation,omitempty"`
1461 }
1462
1463
1464
1465
1466
1467
1468
1469
1470 type StatusEvent struct {
1471 SHA *string `json:"sha,omitempty"`
1472
1473 State *string `json:"state,omitempty"`
1474 Description *string `json:"description,omitempty"`
1475 TargetURL *string `json:"target_url,omitempty"`
1476 Branches []*Branch `json:"branches,omitempty"`
1477
1478
1479 ID *int64 `json:"id,omitempty"`
1480 Name *string `json:"name,omitempty"`
1481 Context *string `json:"context,omitempty"`
1482 Commit *RepositoryCommit `json:"commit,omitempty"`
1483 CreatedAt *Timestamp `json:"created_at,omitempty"`
1484 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1485 Repo *Repository `json:"repository,omitempty"`
1486 Sender *User `json:"sender,omitempty"`
1487 Installation *Installation `json:"installation,omitempty"`
1488 }
1489
1490
1491
1492
1493
1494
1495
1496
1497 type TeamEvent struct {
1498 Action *string `json:"action,omitempty"`
1499 Team *Team `json:"team,omitempty"`
1500 Changes *TeamChange `json:"changes,omitempty"`
1501 Repo *Repository `json:"repository,omitempty"`
1502
1503
1504 Org *Organization `json:"organization,omitempty"`
1505 Sender *User `json:"sender,omitempty"`
1506 Installation *Installation `json:"installation,omitempty"`
1507 }
1508
1509
1510
1511
1512
1513
1514
1515
1516 type TeamAddEvent struct {
1517 Team *Team `json:"team,omitempty"`
1518 Repo *Repository `json:"repository,omitempty"`
1519
1520
1521 Org *Organization `json:"organization,omitempty"`
1522 Sender *User `json:"sender,omitempty"`
1523 Installation *Installation `json:"installation,omitempty"`
1524 }
1525
1526
1527
1528
1529
1530
1531
1532 type UserEvent struct {
1533 User *User `json:"user,omitempty"`
1534
1535 Action *string `json:"action,omitempty"`
1536 Enterprise *Enterprise `json:"enterprise,omitempty"`
1537 Sender *User `json:"sender,omitempty"`
1538
1539
1540 Installation *Installation `json:"installation,omitempty"`
1541 }
1542
1543
1544
1545
1546
1547
1548
1549
1550 type WatchEvent struct {
1551
1552 Action *string `json:"action,omitempty"`
1553
1554
1555 Repo *Repository `json:"repository,omitempty"`
1556 Sender *User `json:"sender,omitempty"`
1557 Installation *Installation `json:"installation,omitempty"`
1558 }
1559
1560
1561
1562
1563
1564 type WorkflowDispatchEvent struct {
1565 Inputs json.RawMessage `json:"inputs,omitempty"`
1566 Ref *string `json:"ref,omitempty"`
1567 Workflow *string `json:"workflow,omitempty"`
1568
1569
1570 Repo *Repository `json:"repository,omitempty"`
1571 Org *Organization `json:"organization,omitempty"`
1572 Sender *User `json:"sender,omitempty"`
1573 Installation *Installation `json:"installation,omitempty"`
1574 }
1575
1576
1577
1578
1579 type WorkflowJobEvent struct {
1580 WorkflowJob *WorkflowJob `json:"workflow_job,omitempty"`
1581
1582 Action *string `json:"action,omitempty"`
1583
1584
1585
1586
1587
1588 Org *Organization `json:"organization,omitempty"`
1589 Repo *Repository `json:"repository,omitempty"`
1590 Sender *User `json:"sender,omitempty"`
1591 Installation *Installation `json:"installation,omitempty"`
1592 }
1593
1594
1595
1596
1597 type WorkflowRunEvent struct {
1598 Action *string `json:"action,omitempty"`
1599 Workflow *Workflow `json:"workflow,omitempty"`
1600 WorkflowRun *WorkflowRun `json:"workflow_run,omitempty"`
1601
1602
1603 Org *Organization `json:"organization,omitempty"`
1604 Repo *Repository `json:"repository,omitempty"`
1605 Sender *User `json:"sender,omitempty"`
1606 Installation *Installation `json:"installation,omitempty"`
1607 }
1608
1609
1610
1611
1612 type SecurityAdvisory struct {
1613 CVSS *AdvisoryCVSS `json:"cvss,omitempty"`
1614 CWEs []*AdvisoryCWEs `json:"cwes,omitempty"`
1615 GHSAID *string `json:"ghsa_id,omitempty"`
1616 Summary *string `json:"summary,omitempty"`
1617 Description *string `json:"description,omitempty"`
1618 Severity *string `json:"severity,omitempty"`
1619 Identifiers []*AdvisoryIdentifier `json:"identifiers,omitempty"`
1620 References []*AdvisoryReference `json:"references,omitempty"`
1621 PublishedAt *Timestamp `json:"published_at,omitempty"`
1622 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1623 WithdrawnAt *Timestamp `json:"withdrawn_at,omitempty"`
1624 Vulnerabilities []*AdvisoryVulnerability `json:"vulnerabilities,omitempty"`
1625 }
1626
1627
1628 type AdvisoryIdentifier struct {
1629 Value *string `json:"value,omitempty"`
1630 Type *string `json:"type,omitempty"`
1631 }
1632
1633
1634 type AdvisoryReference struct {
1635 URL *string `json:"url,omitempty"`
1636 }
1637
1638
1639 type AdvisoryVulnerability struct {
1640 Package *VulnerabilityPackage `json:"package,omitempty"`
1641 Severity *string `json:"severity,omitempty"`
1642 VulnerableVersionRange *string `json:"vulnerable_version_range,omitempty"`
1643 FirstPatchedVersion *FirstPatchedVersion `json:"first_patched_version,omitempty"`
1644 }
1645
1646
1647 type VulnerabilityPackage struct {
1648 Ecosystem *string `json:"ecosystem,omitempty"`
1649 Name *string `json:"name,omitempty"`
1650 }
1651
1652
1653 type FirstPatchedVersion struct {
1654 Identifier *string `json:"identifier,omitempty"`
1655 }
1656
1657
1658
1659
1660 type SecurityAdvisoryEvent struct {
1661 Action *string `json:"action,omitempty"`
1662 SecurityAdvisory *SecurityAdvisory `json:"security_advisory,omitempty"`
1663
1664
1665 Enterprise *Enterprise `json:"enterprise,omitempty"`
1666 Installation *Installation `json:"installation,omitempty"`
1667 Organization *Organization `json:"organization,omitempty"`
1668 Repository *Repository `json:"repository,omitempty"`
1669 Sender *User `json:"sender,omitempty"`
1670 }
1671
1672
1673
1674
1675 type CodeScanningAlertEvent struct {
1676 Action *string `json:"action,omitempty"`
1677 Alert *Alert `json:"alert,omitempty"`
1678 Ref *string `json:"ref,omitempty"`
1679
1680 CommitOID *string `json:"commit_oid,omitempty"`
1681 Repo *Repository `json:"repository,omitempty"`
1682 Org *Organization `json:"organization,omitempty"`
1683 Sender *User `json:"sender,omitempty"`
1684
1685 Installation *Installation `json:"installation,omitempty"`
1686 }
1687
View as plain text