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 DeployKeyEvent struct {
142
143
144 Action *string `json:"action,omitempty"`
145
146
147 Key *Key `json:"key,omitempty"`
148
149
150 Repo *Repository `json:"repository,omitempty"`
151
152
153
154 Organization *Organization `json:"organization,omitempty"`
155
156
157 Sender *User `json:"sender,omitempty"`
158 Installation *Installation `json:"installation,omitempty"`
159 }
160
161
162
163
164
165
166
167 type DeploymentEvent struct {
168 Deployment *Deployment `json:"deployment,omitempty"`
169 Repo *Repository `json:"repository,omitempty"`
170
171
172 Sender *User `json:"sender,omitempty"`
173 Installation *Installation `json:"installation,omitempty"`
174 }
175
176
177
178
179
180
181
182 type DeploymentStatusEvent struct {
183 Deployment *Deployment `json:"deployment,omitempty"`
184 DeploymentStatus *DeploymentStatus `json:"deployment_status,omitempty"`
185 Repo *Repository `json:"repository,omitempty"`
186
187
188 Sender *User `json:"sender,omitempty"`
189 Installation *Installation `json:"installation,omitempty"`
190 }
191
192
193
194
195
196 type DiscussionEvent struct {
197
198
199
200 Action *string `json:"action,omitempty"`
201 Discussion *Discussion `json:"discussion,omitempty"`
202 Repo *Repository `json:"repository,omitempty"`
203 Org *Organization `json:"organization,omitempty"`
204 Sender *User `json:"sender,omitempty"`
205 Installation *Installation `json:"installation,omitempty"`
206 }
207
208
209 type Discussion struct {
210 RepositoryURL *string `json:"repository_url,omitempty"`
211 DiscussionCategory *DiscussionCategory `json:"category,omitempty"`
212 AnswerHTMLURL *string `json:"answer_html_url,omitempty"`
213 AnswerChosenAt *Timestamp `json:"answer_chosen_at,omitempty"`
214 AnswerChosenBy *string `json:"answer_chosen_by,omitempty"`
215 HTMLURL *string `json:"html_url,omitempty"`
216 ID *int64 `json:"id,omitempty"`
217 NodeID *string `json:"node_id,omitempty"`
218 Number *int `json:"number,omitempty"`
219 Title *string `json:"title,omitempty"`
220 User *User `json:"user,omitempty"`
221 State *string `json:"state,omitempty"`
222 Locked *bool `json:"locked,omitempty"`
223 Comments *int `json:"comments,omitempty"`
224 CreatedAt *Timestamp `json:"created_at,omitempty"`
225 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
226 AuthorAssociation *string `json:"author_association,omitempty"`
227 ActiveLockReason *string `json:"active_lock_reason,omitempty"`
228 Body *string `json:"body,omitempty"`
229 }
230
231
232 type DiscussionCategory struct {
233 ID *int64 `json:"id,omitempty"`
234 NodeID *string `json:"node_id,omitempty"`
235 RepositoryID *int64 `json:"repository_id,omitempty"`
236 Emoji *string `json:"emoji,omitempty"`
237 Name *string `json:"name,omitempty"`
238 Description *string `json:"description,omitempty"`
239 CreatedAt *Timestamp `json:"created_at,omitempty"`
240 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
241 Slug *string `json:"slug,omitempty"`
242 IsAnswerable *bool `json:"is_answerable,omitempty"`
243 }
244
245
246
247
248
249 type ForkEvent struct {
250
251 Forkee *Repository `json:"forkee,omitempty"`
252
253
254 Repo *Repository `json:"repository,omitempty"`
255 Sender *User `json:"sender,omitempty"`
256 Installation *Installation `json:"installation,omitempty"`
257 }
258
259
260
261
262
263 type GitHubAppAuthorizationEvent struct {
264
265 Action *string `json:"action,omitempty"`
266
267
268 Sender *User `json:"sender,omitempty"`
269 Installation *Installation `json:"installation,omitempty"`
270 }
271
272
273 type Page struct {
274 PageName *string `json:"page_name,omitempty"`
275 Title *string `json:"title,omitempty"`
276 Summary *string `json:"summary,omitempty"`
277 Action *string `json:"action,omitempty"`
278 SHA *string `json:"sha,omitempty"`
279 HTMLURL *string `json:"html_url,omitempty"`
280 }
281
282
283
284
285
286 type GollumEvent struct {
287 Pages []*Page `json:"pages,omitempty"`
288
289
290 Repo *Repository `json:"repository,omitempty"`
291 Sender *User `json:"sender,omitempty"`
292 Installation *Installation `json:"installation,omitempty"`
293 }
294
295
296
297 type EditChange struct {
298 Title *EditTitle `json:"title,omitempty"`
299 Body *EditBody `json:"body,omitempty"`
300 Base *EditBase `json:"base,omitempty"`
301 Repo *EditRepo `json:"repository,omitempty"`
302 }
303
304
305 type EditTitle struct {
306 From *string `json:"from,omitempty"`
307 }
308
309
310 type EditBody struct {
311 From *string `json:"from,omitempty"`
312 }
313
314
315 type EditBase struct {
316 Ref *EditRef `json:"ref,omitempty"`
317 SHA *EditSHA `json:"sha,omitempty"`
318 }
319
320
321 type EditRef struct {
322 From *string `json:"from,omitempty"`
323 }
324
325
326 type EditRepo struct {
327 Name *RepoName `json:"name,omitempty"`
328 }
329
330
331 type RepoName struct {
332 From *string `json:"from,omitempty"`
333 }
334
335
336 type EditSHA struct {
337 From *string `json:"from,omitempty"`
338 }
339
340
341 type ProjectChange struct {
342 Name *ProjectName `json:"name,omitempty"`
343 Body *ProjectBody `json:"body,omitempty"`
344 }
345
346
347 type ProjectName struct {
348 From *string `json:"from,omitempty"`
349 }
350
351
352 type ProjectBody struct {
353 From *string `json:"from,omitempty"`
354 }
355
356
357 type ProjectCardChange struct {
358 Note *ProjectCardNote `json:"note,omitempty"`
359 }
360
361
362 type ProjectCardNote struct {
363 From *string `json:"from,omitempty"`
364 }
365
366
367 type ProjectColumnChange struct {
368 Name *ProjectColumnName `json:"name,omitempty"`
369 }
370
371
372 type ProjectColumnName struct {
373 From *string `json:"from,omitempty"`
374 }
375
376
377 type TeamChange struct {
378 Description *TeamDescription `json:"description,omitempty"`
379 Name *TeamName `json:"name,omitempty"`
380 Privacy *TeamPrivacy `json:"privacy,omitempty"`
381 Repository *TeamRepository `json:"repository,omitempty"`
382 }
383
384
385 type TeamDescription struct {
386 From *string `json:"from,omitempty"`
387 }
388
389
390 type TeamName struct {
391 From *string `json:"from,omitempty"`
392 }
393
394
395 type TeamPrivacy struct {
396 From *string `json:"from,omitempty"`
397 }
398
399
400 type TeamRepository struct {
401 Permissions *TeamPermissions `json:"permissions,omitempty"`
402 }
403
404
405 type TeamPermissions struct {
406 From *TeamPermissionsFrom `json:"from,omitempty"`
407 }
408
409
410 type TeamPermissionsFrom struct {
411 Admin *bool `json:"admin,omitempty"`
412 Pull *bool `json:"pull,omitempty"`
413 Push *bool `json:"push,omitempty"`
414 }
415
416
417
418
419
420
421 type InstallationEvent struct {
422
423 Action *string `json:"action,omitempty"`
424 Repositories []*Repository `json:"repositories,omitempty"`
425 Sender *User `json:"sender,omitempty"`
426 Installation *Installation `json:"installation,omitempty"`
427
428 }
429
430
431
432
433
434 type InstallationRepositoriesEvent struct {
435
436 Action *string `json:"action,omitempty"`
437 RepositoriesAdded []*Repository `json:"repositories_added,omitempty"`
438 RepositoriesRemoved []*Repository `json:"repositories_removed,omitempty"`
439 RepositorySelection *string `json:"repository_selection,omitempty"`
440 Sender *User `json:"sender,omitempty"`
441 Installation *Installation `json:"installation,omitempty"`
442 }
443
444
445
446
447
448
449 type IssueCommentEvent struct {
450
451
452 Action *string `json:"action,omitempty"`
453 Issue *Issue `json:"issue,omitempty"`
454 Comment *IssueComment `json:"comment,omitempty"`
455
456
457 Changes *EditChange `json:"changes,omitempty"`
458 Repo *Repository `json:"repository,omitempty"`
459 Sender *User `json:"sender,omitempty"`
460 Installation *Installation `json:"installation,omitempty"`
461
462
463
464 Organization *Organization `json:"organization,omitempty"`
465 }
466
467
468
469
470
471
472
473 type IssuesEvent struct {
474
475
476
477
478 Action *string `json:"action,omitempty"`
479 Issue *Issue `json:"issue,omitempty"`
480 Assignee *User `json:"assignee,omitempty"`
481 Label *Label `json:"label,omitempty"`
482
483
484 Changes *EditChange `json:"changes,omitempty"`
485 Repo *Repository `json:"repository,omitempty"`
486 Sender *User `json:"sender,omitempty"`
487 Installation *Installation `json:"installation,omitempty"`
488 }
489
490
491
492
493
494 type LabelEvent struct {
495
496
497 Action *string `json:"action,omitempty"`
498 Label *Label `json:"label,omitempty"`
499 Changes *EditChange `json:"changes,omitempty"`
500
501
502 Repo *Repository `json:"repository,omitempty"`
503 Org *Organization `json:"organization,omitempty"`
504 Sender *User `json:"sender,omitempty"`
505 Installation *Installation `json:"installation,omitempty"`
506 }
507
508
509
510
511
512
513 type MarketplacePurchaseEvent struct {
514
515
516 Action *string `json:"action,omitempty"`
517
518
519 EffectiveDate *Timestamp `json:"effective_date,omitempty"`
520 MarketplacePurchase *MarketplacePurchase `json:"marketplace_purchase,omitempty"`
521 PreviousMarketplacePurchase *MarketplacePurchase `json:"previous_marketplace_purchase,omitempty"`
522 Sender *User `json:"sender,omitempty"`
523 Installation *Installation `json:"installation,omitempty"`
524 }
525
526
527
528
529
530 type MemberEvent struct {
531
532 Action *string `json:"action,omitempty"`
533 Member *User `json:"member,omitempty"`
534
535
536 Repo *Repository `json:"repository,omitempty"`
537 Sender *User `json:"sender,omitempty"`
538 Installation *Installation `json:"installation,omitempty"`
539 }
540
541
542
543
544
545
546
547
548 type MembershipEvent struct {
549
550 Action *string `json:"action,omitempty"`
551
552 Scope *string `json:"scope,omitempty"`
553 Member *User `json:"member,omitempty"`
554 Team *Team `json:"team,omitempty"`
555
556
557 Org *Organization `json:"organization,omitempty"`
558 Sender *User `json:"sender,omitempty"`
559 Installation *Installation `json:"installation,omitempty"`
560 }
561
562
563
564
565
566
567
568 type MetaEvent struct {
569
570 Action *string `json:"action,omitempty"`
571
572 HookID *int64 `json:"hook_id,omitempty"`
573
574
575
576 Hook *Hook `json:"hook,omitempty"`
577
578
579 Repo *Repository `json:"repository,omitempty"`
580 Org *Organization `json:"organization,omitempty"`
581 Sender *User `json:"sender,omitempty"`
582 Installation *Installation `json:"installation,omitempty"`
583 }
584
585
586
587
588
589 type MilestoneEvent struct {
590
591
592 Action *string `json:"action,omitempty"`
593 Milestone *Milestone `json:"milestone,omitempty"`
594
595
596 Changes *EditChange `json:"changes,omitempty"`
597 Repo *Repository `json:"repository,omitempty"`
598 Sender *User `json:"sender,omitempty"`
599 Org *Organization `json:"organization,omitempty"`
600 Installation *Installation `json:"installation,omitempty"`
601 }
602
603
604
605
606
607
608
609 type OrganizationEvent struct {
610
611
612 Action *string `json:"action,omitempty"`
613
614
615 Invitation *Invitation `json:"invitation,omitempty"`
616
617
618
619 Membership *Membership `json:"membership,omitempty"`
620
621 Organization *Organization `json:"organization,omitempty"`
622 Sender *User `json:"sender,omitempty"`
623 Installation *Installation `json:"installation,omitempty"`
624 }
625
626
627
628
629
630 type OrgBlockEvent struct {
631
632
633 Action *string `json:"action,omitempty"`
634 BlockedUser *User `json:"blocked_user,omitempty"`
635 Organization *Organization `json:"organization,omitempty"`
636 Sender *User `json:"sender,omitempty"`
637
638
639 Installation *Installation `json:"installation,omitempty"`
640 }
641
642
643
644
645
646
647
648 type PackageEvent struct {
649
650
651 Action *string `json:"action,omitempty"`
652 Package *Package `json:"package,omitempty"`
653 Repo *Repository `json:"repository,omitempty"`
654 Org *Organization `json:"organization,omitempty"`
655 Sender *User `json:"sender,omitempty"`
656
657
658 Installation *Installation `json:"installation,omitempty"`
659 }
660
661
662
663
664
665
666
667
668
669
670
671 type PageBuildEvent struct {
672 Build *PagesBuild `json:"build,omitempty"`
673
674
675 ID *int64 `json:"id,omitempty"`
676 Repo *Repository `json:"repository,omitempty"`
677 Sender *User `json:"sender,omitempty"`
678 Installation *Installation `json:"installation,omitempty"`
679 }
680
681
682
683
684 type PingEvent struct {
685
686 Zen *string `json:"zen,omitempty"`
687
688 HookID *int64 `json:"hook_id,omitempty"`
689
690 Hook *Hook `json:"hook,omitempty"`
691
692
693 Repo *Repository `json:"repository,omitempty"`
694 Org *Organization `json:"organization,omitempty"`
695 Sender *User `json:"sender,omitempty"`
696 Installation *Installation `json:"installation,omitempty"`
697 }
698
699
700
701
702
703 type ProjectEvent struct {
704 Action *string `json:"action,omitempty"`
705 Changes *ProjectChange `json:"changes,omitempty"`
706 Project *Project `json:"project,omitempty"`
707
708
709 Repo *Repository `json:"repository,omitempty"`
710 Org *Organization `json:"organization,omitempty"`
711 Sender *User `json:"sender,omitempty"`
712 Installation *Installation `json:"installation,omitempty"`
713 }
714
715
716
717
718
719 type ProjectCardEvent struct {
720 Action *string `json:"action,omitempty"`
721 Changes *ProjectCardChange `json:"changes,omitempty"`
722 AfterID *int64 `json:"after_id,omitempty"`
723 ProjectCard *ProjectCard `json:"project_card,omitempty"`
724
725
726 Repo *Repository `json:"repository,omitempty"`
727 Org *Organization `json:"organization,omitempty"`
728 Sender *User `json:"sender,omitempty"`
729 Installation *Installation `json:"installation,omitempty"`
730 }
731
732
733
734
735
736 type ProjectColumnEvent struct {
737 Action *string `json:"action,omitempty"`
738 Changes *ProjectColumnChange `json:"changes,omitempty"`
739 AfterID *int64 `json:"after_id,omitempty"`
740 ProjectColumn *ProjectColumn `json:"project_column,omitempty"`
741
742
743 Repo *Repository `json:"repository,omitempty"`
744 Org *Organization `json:"organization,omitempty"`
745 Sender *User `json:"sender,omitempty"`
746 Installation *Installation `json:"installation,omitempty"`
747 }
748
749
750
751
752
753
754 type PublicEvent struct {
755
756 Repo *Repository `json:"repository,omitempty"`
757 Sender *User `json:"sender,omitempty"`
758 Installation *Installation `json:"installation,omitempty"`
759 }
760
761
762
763
764
765
766
767 type PullRequestEvent struct {
768
769
770
771
772
773
774
775 Action *string `json:"action,omitempty"`
776 Assignee *User `json:"assignee,omitempty"`
777 Number *int `json:"number,omitempty"`
778 PullRequest *PullRequest `json:"pull_request,omitempty"`
779
780
781 Changes *EditChange `json:"changes,omitempty"`
782
783
784
785 RequestedReviewer *User `json:"requested_reviewer,omitempty"`
786
787
788 RequestedTeam *Team `json:"requested_team,omitempty"`
789 Repo *Repository `json:"repository,omitempty"`
790 Sender *User `json:"sender,omitempty"`
791 Installation *Installation `json:"installation,omitempty"`
792 Label *Label `json:"label,omitempty"`
793
794
795
796 Organization *Organization `json:"organization,omitempty"`
797
798
799 Before *string `json:"before,omitempty"`
800 After *string `json:"after,omitempty"`
801 }
802
803
804
805
806
807
808 type PullRequestReviewEvent struct {
809
810 Action *string `json:"action,omitempty"`
811 Review *PullRequestReview `json:"review,omitempty"`
812 PullRequest *PullRequest `json:"pull_request,omitempty"`
813
814
815 Repo *Repository `json:"repository,omitempty"`
816 Sender *User `json:"sender,omitempty"`
817 Installation *Installation `json:"installation,omitempty"`
818
819
820
821 Organization *Organization `json:"organization,omitempty"`
822 }
823
824
825
826
827
828
829 type PullRequestReviewCommentEvent struct {
830
831
832 Action *string `json:"action,omitempty"`
833 PullRequest *PullRequest `json:"pull_request,omitempty"`
834 Comment *PullRequestComment `json:"comment,omitempty"`
835
836
837 Changes *EditChange `json:"changes,omitempty"`
838 Repo *Repository `json:"repository,omitempty"`
839 Sender *User `json:"sender,omitempty"`
840 Installation *Installation `json:"installation,omitempty"`
841 }
842
843
844
845
846
847
848 type PullRequestReviewThreadEvent struct {
849
850
851 Action *string `json:"action,omitempty"`
852 Thread *PullRequestThread `json:"thread,omitempty"`
853 PullRequest *PullRequest `json:"pull_request,omitempty"`
854
855
856 Repo *Repository `json:"repository,omitempty"`
857 Sender *User `json:"sender,omitempty"`
858 Installation *Installation `json:"installation,omitempty"`
859 }
860
861
862
863
864
865
866
867 type PullRequestTargetEvent struct {
868
869
870
871
872
873
874
875 Action *string `json:"action,omitempty"`
876 Assignee *User `json:"assignee,omitempty"`
877 Number *int `json:"number,omitempty"`
878 PullRequest *PullRequest `json:"pull_request,omitempty"`
879
880
881 Changes *EditChange `json:"changes,omitempty"`
882
883
884
885 RequestedReviewer *User `json:"requested_reviewer,omitempty"`
886
887
888 RequestedTeam *Team `json:"requested_team,omitempty"`
889 Repo *Repository `json:"repository,omitempty"`
890 Sender *User `json:"sender,omitempty"`
891 Installation *Installation `json:"installation,omitempty"`
892 Label *Label `json:"label,omitempty"`
893
894
895
896 Organization *Organization `json:"organization,omitempty"`
897
898
899 Before *string `json:"before,omitempty"`
900 After *string `json:"after,omitempty"`
901 }
902
903
904
905
906 type PushEvent struct {
907 PushID *int64 `json:"push_id,omitempty"`
908 Head *string `json:"head,omitempty"`
909 Ref *string `json:"ref,omitempty"`
910 Size *int `json:"size,omitempty"`
911 Commits []*HeadCommit `json:"commits,omitempty"`
912 Before *string `json:"before,omitempty"`
913 DistinctSize *int `json:"distinct_size,omitempty"`
914
915
916 Action *string `json:"action,omitempty"`
917 After *string `json:"after,omitempty"`
918 Created *bool `json:"created,omitempty"`
919 Deleted *bool `json:"deleted,omitempty"`
920 Forced *bool `json:"forced,omitempty"`
921 BaseRef *string `json:"base_ref,omitempty"`
922 Compare *string `json:"compare,omitempty"`
923 Repo *PushEventRepository `json:"repository,omitempty"`
924 HeadCommit *HeadCommit `json:"head_commit,omitempty"`
925 Pusher *User `json:"pusher,omitempty"`
926 Sender *User `json:"sender,omitempty"`
927 Installation *Installation `json:"installation,omitempty"`
928
929
930
931 Organization *Organization `json:"organization,omitempty"`
932 }
933
934 func (p PushEvent) String() string {
935 return Stringify(p)
936 }
937
938
939 type HeadCommit struct {
940 Message *string `json:"message,omitempty"`
941 Author *CommitAuthor `json:"author,omitempty"`
942 URL *string `json:"url,omitempty"`
943 Distinct *bool `json:"distinct,omitempty"`
944
945
946 SHA *string `json:"sha,omitempty"`
947
948
949 ID *string `json:"id,omitempty"`
950 TreeID *string `json:"tree_id,omitempty"`
951 Timestamp *Timestamp `json:"timestamp,omitempty"`
952 Committer *CommitAuthor `json:"committer,omitempty"`
953 Added []string `json:"added,omitempty"`
954 Removed []string `json:"removed,omitempty"`
955 Modified []string `json:"modified,omitempty"`
956 }
957
958 func (h HeadCommit) String() string {
959 return Stringify(h)
960 }
961
962
963 type PushEventRepository struct {
964 ID *int64 `json:"id,omitempty"`
965 NodeID *string `json:"node_id,omitempty"`
966 Name *string `json:"name,omitempty"`
967 FullName *string `json:"full_name,omitempty"`
968 Owner *User `json:"owner,omitempty"`
969 Private *bool `json:"private,omitempty"`
970 Description *string `json:"description,omitempty"`
971 Fork *bool `json:"fork,omitempty"`
972 CreatedAt *Timestamp `json:"created_at,omitempty"`
973 PushedAt *Timestamp `json:"pushed_at,omitempty"`
974 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
975 Homepage *string `json:"homepage,omitempty"`
976 PullsURL *string `json:"pulls_url,omitempty"`
977 Size *int `json:"size,omitempty"`
978 StargazersCount *int `json:"stargazers_count,omitempty"`
979 WatchersCount *int `json:"watchers_count,omitempty"`
980 Language *string `json:"language,omitempty"`
981 HasIssues *bool `json:"has_issues,omitempty"`
982 HasDownloads *bool `json:"has_downloads,omitempty"`
983 HasWiki *bool `json:"has_wiki,omitempty"`
984 HasPages *bool `json:"has_pages,omitempty"`
985 ForksCount *int `json:"forks_count,omitempty"`
986 Archived *bool `json:"archived,omitempty"`
987 Disabled *bool `json:"disabled,omitempty"`
988 OpenIssuesCount *int `json:"open_issues_count,omitempty"`
989 DefaultBranch *string `json:"default_branch,omitempty"`
990 MasterBranch *string `json:"master_branch,omitempty"`
991 Organization *string `json:"organization,omitempty"`
992 URL *string `json:"url,omitempty"`
993 ArchiveURL *string `json:"archive_url,omitempty"`
994 HTMLURL *string `json:"html_url,omitempty"`
995 StatusesURL *string `json:"statuses_url,omitempty"`
996 GitURL *string `json:"git_url,omitempty"`
997 SSHURL *string `json:"ssh_url,omitempty"`
998 CloneURL *string `json:"clone_url,omitempty"`
999 SVNURL *string `json:"svn_url,omitempty"`
1000 }
1001
1002
1003 type PushEventRepoOwner struct {
1004 Name *string `json:"name,omitempty"`
1005 Email *string `json:"email,omitempty"`
1006 }
1007
1008
1009
1010
1011
1012
1013 type ReleaseEvent struct {
1014
1015
1016 Action *string `json:"action,omitempty"`
1017 Release *RepositoryRelease `json:"release,omitempty"`
1018
1019
1020 Repo *Repository `json:"repository,omitempty"`
1021 Sender *User `json:"sender,omitempty"`
1022 Installation *Installation `json:"installation,omitempty"`
1023 }
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034 type RepositoryEvent struct {
1035
1036
1037
1038 Action *string `json:"action,omitempty"`
1039 Repo *Repository `json:"repository,omitempty"`
1040
1041
1042 Changes *EditChange `json:"changes,omitempty"`
1043 Org *Organization `json:"organization,omitempty"`
1044 Sender *User `json:"sender,omitempty"`
1045 Installation *Installation `json:"installation,omitempty"`
1046 }
1047
1048
1049
1050
1051 type RepositoryDispatchEvent struct {
1052
1053 Action *string `json:"action,omitempty"`
1054 Branch *string `json:"branch,omitempty"`
1055 ClientPayload json.RawMessage `json:"client_payload,omitempty"`
1056 Repo *Repository `json:"repository,omitempty"`
1057
1058
1059 Org *Organization `json:"organization,omitempty"`
1060 Sender *User `json:"sender,omitempty"`
1061 Installation *Installation `json:"installation,omitempty"`
1062 }
1063
1064
1065
1066
1067 type RepositoryImportEvent struct {
1068
1069 Status *string `json:"status,omitempty"`
1070 Repo *Repository `json:"repository,omitempty"`
1071 Org *Organization `json:"organization,omitempty"`
1072 Sender *User `json:"sender,omitempty"`
1073 }
1074
1075
1076
1077
1078 type RepositoryVulnerabilityAlertEvent struct {
1079
1080 Action *string `json:"action,omitempty"`
1081
1082
1083 Alert *RepositoryVulnerabilityAlert `json:"alert,omitempty"`
1084
1085
1086 Repository *Repository `json:"repository,omitempty"`
1087
1088
1089 Installation *Installation `json:"installation,omitempty"`
1090
1091
1092 Sender *User `json:"sender,omitempty"`
1093 }
1094
1095
1096 type RepositoryVulnerabilityAlert struct {
1097 ID *int64 `json:"id,omitempty"`
1098 AffectedRange *string `json:"affected_range,omitempty"`
1099 AffectedPackageName *string `json:"affected_package_name,omitempty"`
1100 ExternalReference *string `json:"external_reference,omitempty"`
1101 ExternalIdentifier *string `json:"external_identifier,omitempty"`
1102 GitHubSecurityAdvisoryID *string `json:"ghsa_id,omitempty"`
1103 Severity *string `json:"severity,omitempty"`
1104 CreatedAt *Timestamp `json:"created_at,omitempty"`
1105 FixedIn *string `json:"fixed_in,omitempty"`
1106 Dismisser *User `json:"dismisser,omitempty"`
1107 DismissReason *string `json:"dismiss_reason,omitempty"`
1108 DismissedAt *Timestamp `json:"dismissed_at,omitempty"`
1109 }
1110
1111
1112
1113
1114
1115 type SecretScanningAlertEvent struct {
1116
1117 Action *string `json:"action,omitempty"`
1118
1119
1120 Alert *SecretScanningAlert `json:"alert,omitempty"`
1121
1122
1123 Sender *User `json:"sender,omitempty"`
1124
1125 Repo *Repository `json:"repository,omitempty"`
1126 Organization *Organization `json:"organization,omitempty"`
1127 Enterprise *Enterprise `json:"enterprise,omitempty"`
1128 Installation *Installation `json:"installation,omitempty"`
1129 }
1130
1131
1132
1133
1134
1135 type StarEvent struct {
1136
1137 Action *string `json:"action,omitempty"`
1138
1139
1140 StarredAt *Timestamp `json:"starred_at,omitempty"`
1141
1142
1143 Org *Organization `json:"organization,omitempty"`
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
1156 type StatusEvent struct {
1157 SHA *string `json:"sha,omitempty"`
1158
1159 State *string `json:"state,omitempty"`
1160 Description *string `json:"description,omitempty"`
1161 TargetURL *string `json:"target_url,omitempty"`
1162 Branches []*Branch `json:"branches,omitempty"`
1163
1164
1165 ID *int64 `json:"id,omitempty"`
1166 Name *string `json:"name,omitempty"`
1167 Context *string `json:"context,omitempty"`
1168 Commit *RepositoryCommit `json:"commit,omitempty"`
1169 CreatedAt *Timestamp `json:"created_at,omitempty"`
1170 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1171 Repo *Repository `json:"repository,omitempty"`
1172 Sender *User `json:"sender,omitempty"`
1173 Installation *Installation `json:"installation,omitempty"`
1174 }
1175
1176
1177
1178
1179
1180
1181
1182
1183 type TeamEvent struct {
1184 Action *string `json:"action,omitempty"`
1185 Team *Team `json:"team,omitempty"`
1186 Changes *TeamChange `json:"changes,omitempty"`
1187 Repo *Repository `json:"repository,omitempty"`
1188
1189
1190 Org *Organization `json:"organization,omitempty"`
1191 Sender *User `json:"sender,omitempty"`
1192 Installation *Installation `json:"installation,omitempty"`
1193 }
1194
1195
1196
1197
1198
1199
1200
1201
1202 type TeamAddEvent struct {
1203 Team *Team `json:"team,omitempty"`
1204 Repo *Repository `json:"repository,omitempty"`
1205
1206
1207 Org *Organization `json:"organization,omitempty"`
1208 Sender *User `json:"sender,omitempty"`
1209 Installation *Installation `json:"installation,omitempty"`
1210 }
1211
1212
1213
1214
1215
1216
1217
1218 type UserEvent struct {
1219 User *User `json:"user,omitempty"`
1220
1221 Action *string `json:"action,omitempty"`
1222 Enterprise *Enterprise `json:"enterprise,omitempty"`
1223 Sender *User `json:"sender,omitempty"`
1224
1225
1226 Installation *Installation `json:"installation,omitempty"`
1227 }
1228
1229
1230
1231
1232
1233
1234
1235
1236 type WatchEvent struct {
1237
1238 Action *string `json:"action,omitempty"`
1239
1240
1241 Repo *Repository `json:"repository,omitempty"`
1242 Sender *User `json:"sender,omitempty"`
1243 Installation *Installation `json:"installation,omitempty"`
1244 }
1245
1246
1247
1248
1249
1250 type WorkflowDispatchEvent struct {
1251 Inputs json.RawMessage `json:"inputs,omitempty"`
1252 Ref *string `json:"ref,omitempty"`
1253 Workflow *string `json:"workflow,omitempty"`
1254
1255
1256 Repo *Repository `json:"repository,omitempty"`
1257 Org *Organization `json:"organization,omitempty"`
1258 Sender *User `json:"sender,omitempty"`
1259 Installation *Installation `json:"installation,omitempty"`
1260 }
1261
1262
1263
1264
1265 type WorkflowJobEvent struct {
1266 WorkflowJob *WorkflowJob `json:"workflow_job,omitempty"`
1267
1268 Action *string `json:"action,omitempty"`
1269
1270
1271
1272
1273
1274 Org *Organization `json:"organization,omitempty"`
1275 Repo *Repository `json:"repository,omitempty"`
1276 Sender *User `json:"sender,omitempty"`
1277 Installation *Installation `json:"installation,omitempty"`
1278 }
1279
1280
1281
1282
1283 type WorkflowRunEvent struct {
1284 Action *string `json:"action,omitempty"`
1285 Workflow *Workflow `json:"workflow,omitempty"`
1286 WorkflowRun *WorkflowRun `json:"workflow_run,omitempty"`
1287
1288
1289 Org *Organization `json:"organization,omitempty"`
1290 Repo *Repository `json:"repository,omitempty"`
1291 Sender *User `json:"sender,omitempty"`
1292 Installation *Installation `json:"installation,omitempty"`
1293 }
1294
1295
1296
1297
1298 type SecurityAdvisory struct {
1299 GHSAID *string `json:"ghsa_id,omitempty"`
1300 Summary *string `json:"summary,omitempty"`
1301 Description *string `json:"description,omitempty"`
1302 Severity *string `json:"severity,omitempty"`
1303 Identifiers []*AdvisoryIdentifier `json:"identifiers,omitempty"`
1304 References []*AdvisoryReference `json:"references,omitempty"`
1305 PublishedAt *Timestamp `json:"published_at,omitempty"`
1306 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
1307 WithdrawnAt *Timestamp `json:"withdrawn_at,omitempty"`
1308 Vulnerabilities []*AdvisoryVulnerability `json:"vulnerabilities,omitempty"`
1309 }
1310
1311
1312 type AdvisoryIdentifier struct {
1313 Value *string `json:"value,omitempty"`
1314 Type *string `json:"type,omitempty"`
1315 }
1316
1317
1318 type AdvisoryReference struct {
1319 URL *string `json:"url,omitempty"`
1320 }
1321
1322
1323 type AdvisoryVulnerability struct {
1324 Package *VulnerabilityPackage `json:"package,omitempty"`
1325 Severity *string `json:"severity,omitempty"`
1326 VulnerableVersionRange *string `json:"vulnerable_version_range,omitempty"`
1327 FirstPatchedVersion *FirstPatchedVersion `json:"first_patched_version,omitempty"`
1328 }
1329
1330
1331 type VulnerabilityPackage struct {
1332 Ecosystem *string `json:"ecosystem,omitempty"`
1333 Name *string `json:"name,omitempty"`
1334 }
1335
1336
1337 type FirstPatchedVersion struct {
1338 Identifier *string `json:"identifier,omitempty"`
1339 }
1340
1341
1342
1343
1344 type SecurityAdvisoryEvent struct {
1345 Action *string `json:"action,omitempty"`
1346 SecurityAdvisory *SecurityAdvisory `json:"security_advisory,omitempty"`
1347 }
1348
1349
1350
1351
1352 type CodeScanningAlertEvent struct {
1353 Action *string `json:"action,omitempty"`
1354 Alert *Alert `json:"alert,omitempty"`
1355 Ref *string `json:"ref,omitempty"`
1356
1357 CommitOID *string `json:"commit_oid,omitempty"`
1358 Repo *Repository `json:"repository,omitempty"`
1359 Org *Organization `json:"organization,omitempty"`
1360 Sender *User `json:"sender,omitempty"`
1361 }
1362
View as plain text