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 CheckRunEvent struct {
23 CheckRun *CheckRun `json:"check_run,omitempty"`
24
25 Action *string `json:"action,omitempty"`
26
27
28 Repo *Repository `json:"repository,omitempty"`
29 Org *Organization `json:"organization,omitempty"`
30 Sender *User `json:"sender,omitempty"`
31 Installation *Installation `json:"installation,omitempty"`
32
33
34 RequestedAction *RequestedAction `json:"requested_action,omitempty"`
35 }
36
37
38
39
40
41 type CheckSuiteEvent struct {
42 CheckSuite *CheckSuite `json:"check_suite,omitempty"`
43
44 Action *string `json:"action,omitempty"`
45
46
47 Repo *Repository `json:"repository,omitempty"`
48 Org *Organization `json:"organization,omitempty"`
49 Sender *User `json:"sender,omitempty"`
50 Installation *Installation `json:"installation,omitempty"`
51 }
52
53
54
55
56
57 type CommitCommentEvent struct {
58 Comment *RepositoryComment `json:"comment,omitempty"`
59
60
61 Action *string `json:"action,omitempty"`
62 Repo *Repository `json:"repository,omitempty"`
63 Sender *User `json:"sender,omitempty"`
64 Installation *Installation `json:"installation,omitempty"`
65 }
66
67
68
69
70
71
72
73 type ContentReferenceEvent struct {
74 Action *string `json:"action,omitempty"`
75 ContentReference *ContentReference `json:"content_reference,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
88
89 type CreateEvent struct {
90 Ref *string `json:"ref,omitempty"`
91
92 RefType *string `json:"ref_type,omitempty"`
93 MasterBranch *string `json:"master_branch,omitempty"`
94 Description *string `json:"description,omitempty"`
95
96
97 PusherType *string `json:"pusher_type,omitempty"`
98 Repo *Repository `json:"repository,omitempty"`
99 Sender *User `json:"sender,omitempty"`
100 Installation *Installation `json:"installation,omitempty"`
101 }
102
103
104
105
106
107
108
109
110 type DeleteEvent struct {
111 Ref *string `json:"ref,omitempty"`
112
113 RefType *string `json:"ref_type,omitempty"`
114
115
116 PusherType *string `json:"pusher_type,omitempty"`
117 Repo *Repository `json:"repository,omitempty"`
118 Sender *User `json:"sender,omitempty"`
119 Installation *Installation `json:"installation,omitempty"`
120 }
121
122
123
124
125
126 type DeployKeyEvent struct {
127
128
129 Action *string `json:"action,omitempty"`
130
131
132 Key *Key `json:"key,omitempty"`
133 }
134
135
136
137
138
139
140
141 type DeploymentEvent struct {
142 Deployment *Deployment `json:"deployment,omitempty"`
143 Repo *Repository `json:"repository,omitempty"`
144
145
146 Sender *User `json:"sender,omitempty"`
147 Installation *Installation `json:"installation,omitempty"`
148 }
149
150
151
152
153
154
155
156 type DeploymentStatusEvent struct {
157 Deployment *Deployment `json:"deployment,omitempty"`
158 DeploymentStatus *DeploymentStatus `json:"deployment_status,omitempty"`
159 Repo *Repository `json:"repository,omitempty"`
160
161
162 Sender *User `json:"sender,omitempty"`
163 Installation *Installation `json:"installation,omitempty"`
164 }
165
166
167
168
169
170 type ForkEvent struct {
171
172 Forkee *Repository `json:"forkee,omitempty"`
173
174
175 Repo *Repository `json:"repository,omitempty"`
176 Sender *User `json:"sender,omitempty"`
177 Installation *Installation `json:"installation,omitempty"`
178 }
179
180
181
182
183
184 type GitHubAppAuthorizationEvent struct {
185
186 Action *string `json:"action,omitempty"`
187
188
189 Sender *User `json:"sender,omitempty"`
190 }
191
192
193 type Page struct {
194 PageName *string `json:"page_name,omitempty"`
195 Title *string `json:"title,omitempty"`
196 Summary *string `json:"summary,omitempty"`
197 Action *string `json:"action,omitempty"`
198 SHA *string `json:"sha,omitempty"`
199 HTMLURL *string `json:"html_url,omitempty"`
200 }
201
202
203
204
205
206 type GollumEvent struct {
207 Pages []*Page `json:"pages,omitempty"`
208
209
210 Repo *Repository `json:"repository,omitempty"`
211 Sender *User `json:"sender,omitempty"`
212 Installation *Installation `json:"installation,omitempty"`
213 }
214
215
216
217 type EditChange struct {
218 Title *struct {
219 From *string `json:"from,omitempty"`
220 } `json:"title,omitempty"`
221 Body *struct {
222 From *string `json:"from,omitempty"`
223 } `json:"body,omitempty"`
224 Base *struct {
225 Ref *struct {
226 From *string `json:"from,omitempty"`
227 } `json:"ref,omitempty"`
228 SHA *struct {
229 From *string `json:"from,omitempty"`
230 } `json:"sha,omitempty"`
231 } `json:"base,omitempty"`
232 }
233
234
235 type ProjectChange struct {
236 Name *struct {
237 From *string `json:"from,omitempty"`
238 } `json:"name,omitempty"`
239 Body *struct {
240 From *string `json:"from,omitempty"`
241 } `json:"body,omitempty"`
242 }
243
244
245 type ProjectCardChange struct {
246 Note *struct {
247 From *string `json:"from,omitempty"`
248 } `json:"note,omitempty"`
249 }
250
251
252 type ProjectColumnChange struct {
253 Name *struct {
254 From *string `json:"from,omitempty"`
255 } `json:"name,omitempty"`
256 }
257
258
259 type TeamChange struct {
260 Description *struct {
261 From *string `json:"from,omitempty"`
262 } `json:"description,omitempty"`
263 Name *struct {
264 From *string `json:"from,omitempty"`
265 } `json:"name,omitempty"`
266 Privacy *struct {
267 From *string `json:"from,omitempty"`
268 } `json:"privacy,omitempty"`
269 Repository *struct {
270 Permissions *struct {
271 From *struct {
272 Admin *bool `json:"admin,omitempty"`
273 Pull *bool `json:"pull,omitempty"`
274 Push *bool `json:"push,omitempty"`
275 } `json:"from,omitempty"`
276 } `json:"permissions,omitempty"`
277 } `json:"repository,omitempty"`
278 }
279
280
281
282
283
284 type InstallationEvent struct {
285
286 Action *string `json:"action,omitempty"`
287 Repositories []*Repository `json:"repositories,omitempty"`
288 Sender *User `json:"sender,omitempty"`
289 Installation *Installation `json:"installation,omitempty"`
290 }
291
292
293
294
295
296 type InstallationRepositoriesEvent struct {
297
298 Action *string `json:"action,omitempty"`
299 RepositoriesAdded []*Repository `json:"repositories_added,omitempty"`
300 RepositoriesRemoved []*Repository `json:"repositories_removed,omitempty"`
301 RepositorySelection *string `json:"repository_selection,omitempty"`
302 Sender *User `json:"sender,omitempty"`
303 Installation *Installation `json:"installation,omitempty"`
304 }
305
306
307
308
309
310
311 type IssueCommentEvent struct {
312
313
314 Action *string `json:"action,omitempty"`
315 Issue *Issue `json:"issue,omitempty"`
316 Comment *IssueComment `json:"comment,omitempty"`
317
318
319 Changes *EditChange `json:"changes,omitempty"`
320 Repo *Repository `json:"repository,omitempty"`
321 Sender *User `json:"sender,omitempty"`
322 Installation *Installation `json:"installation,omitempty"`
323 }
324
325
326
327
328
329
330
331 type IssuesEvent struct {
332
333
334
335
336 Action *string `json:"action,omitempty"`
337 Issue *Issue `json:"issue,omitempty"`
338 Assignee *User `json:"assignee,omitempty"`
339 Label *Label `json:"label,omitempty"`
340
341
342 Changes *EditChange `json:"changes,omitempty"`
343 Repo *Repository `json:"repository,omitempty"`
344 Sender *User `json:"sender,omitempty"`
345 Installation *Installation `json:"installation,omitempty"`
346 }
347
348
349
350
351
352 type LabelEvent struct {
353
354
355 Action *string `json:"action,omitempty"`
356 Label *Label `json:"label,omitempty"`
357
358
359 Changes *EditChange `json:"changes,omitempty"`
360 Repo *Repository `json:"repository,omitempty"`
361 Org *Organization `json:"organization,omitempty"`
362 Installation *Installation `json:"installation,omitempty"`
363 }
364
365
366
367
368
369
370 type MarketplacePurchaseEvent struct {
371
372
373 Action *string `json:"action,omitempty"`
374
375
376 EffectiveDate *Timestamp `json:"effective_date,omitempty"`
377 MarketplacePurchase *MarketplacePurchase `json:"marketplace_purchase,omitempty"`
378 PreviousMarketplacePurchase *MarketplacePurchase `json:"previous_marketplace_purchase,omitempty"`
379 Sender *User `json:"sender,omitempty"`
380 Installation *Installation `json:"installation,omitempty"`
381 }
382
383
384
385
386
387 type MemberEvent struct {
388
389 Action *string `json:"action,omitempty"`
390 Member *User `json:"member,omitempty"`
391
392
393 Repo *Repository `json:"repository,omitempty"`
394 Sender *User `json:"sender,omitempty"`
395 Installation *Installation `json:"installation,omitempty"`
396 }
397
398
399
400
401
402
403
404
405 type MembershipEvent struct {
406
407 Action *string `json:"action,omitempty"`
408
409 Scope *string `json:"scope,omitempty"`
410 Member *User `json:"member,omitempty"`
411 Team *Team `json:"team,omitempty"`
412
413
414 Org *Organization `json:"organization,omitempty"`
415 Sender *User `json:"sender,omitempty"`
416 Installation *Installation `json:"installation,omitempty"`
417 }
418
419
420
421
422
423
424
425 type MetaEvent struct {
426
427 Action *string `json:"action,omitempty"`
428
429 HookID *int64 `json:"hook_id,omitempty"`
430
431
432
433 Hook *Hook `json:"hook,omitempty"`
434 }
435
436
437
438
439
440 type MilestoneEvent struct {
441
442
443 Action *string `json:"action,omitempty"`
444 Milestone *Milestone `json:"milestone,omitempty"`
445
446
447 Changes *EditChange `json:"changes,omitempty"`
448 Repo *Repository `json:"repository,omitempty"`
449 Sender *User `json:"sender,omitempty"`
450 Org *Organization `json:"organization,omitempty"`
451 Installation *Installation `json:"installation,omitempty"`
452 }
453
454
455
456
457
458
459
460 type OrganizationEvent struct {
461
462
463 Action *string `json:"action,omitempty"`
464
465
466 Invitation *Invitation `json:"invitation,omitempty"`
467
468
469
470 Membership *Membership `json:"membership,omitempty"`
471
472 Organization *Organization `json:"organization,omitempty"`
473 Sender *User `json:"sender,omitempty"`
474 Installation *Installation `json:"installation,omitempty"`
475 }
476
477
478
479
480
481 type OrgBlockEvent struct {
482
483
484 Action *string `json:"action,omitempty"`
485 BlockedUser *User `json:"blocked_user,omitempty"`
486 Organization *Organization `json:"organization,omitempty"`
487 Sender *User `json:"sender,omitempty"`
488
489
490 Installation *Installation `json:"installation,omitempty"`
491 }
492
493
494
495
496
497
498
499 type PackageEvent struct {
500
501
502 Action *string `json:"action,omitempty"`
503 Package *Package `json:"package,omitempty"`
504 Repo *Repository `json:"repository,omitempty"`
505 Org *Organization `json:"organization,omitempty"`
506 Sender *User `json:"sender,omitempty"`
507 }
508
509
510
511
512
513
514
515
516
517
518
519 type PageBuildEvent struct {
520 Build *PagesBuild `json:"build,omitempty"`
521
522
523 ID *int64 `json:"id,omitempty"`
524 Repo *Repository `json:"repository,omitempty"`
525 Sender *User `json:"sender,omitempty"`
526 Installation *Installation `json:"installation,omitempty"`
527 }
528
529
530
531
532 type PingEvent struct {
533
534 Zen *string `json:"zen,omitempty"`
535
536 HookID *int64 `json:"hook_id,omitempty"`
537
538 Hook *Hook `json:"hook,omitempty"`
539 Installation *Installation `json:"installation,omitempty"`
540 }
541
542
543
544
545
546 type ProjectEvent struct {
547 Action *string `json:"action,omitempty"`
548 Changes *ProjectChange `json:"changes,omitempty"`
549 Project *Project `json:"project,omitempty"`
550
551
552 Repo *Repository `json:"repository,omitempty"`
553 Org *Organization `json:"organization,omitempty"`
554 Sender *User `json:"sender,omitempty"`
555 Installation *Installation `json:"installation,omitempty"`
556 }
557
558
559
560
561
562 type ProjectCardEvent struct {
563 Action *string `json:"action,omitempty"`
564 Changes *ProjectCardChange `json:"changes,omitempty"`
565 AfterID *int64 `json:"after_id,omitempty"`
566 ProjectCard *ProjectCard `json:"project_card,omitempty"`
567
568
569 Repo *Repository `json:"repository,omitempty"`
570 Org *Organization `json:"organization,omitempty"`
571 Sender *User `json:"sender,omitempty"`
572 Installation *Installation `json:"installation,omitempty"`
573 }
574
575
576
577
578
579 type ProjectColumnEvent struct {
580 Action *string `json:"action,omitempty"`
581 Changes *ProjectColumnChange `json:"changes,omitempty"`
582 AfterID *int64 `json:"after_id,omitempty"`
583 ProjectColumn *ProjectColumn `json:"project_column,omitempty"`
584
585
586 Repo *Repository `json:"repository,omitempty"`
587 Org *Organization `json:"organization,omitempty"`
588 Sender *User `json:"sender,omitempty"`
589 Installation *Installation `json:"installation,omitempty"`
590 }
591
592
593
594
595
596
597 type PublicEvent struct {
598
599 Repo *Repository `json:"repository,omitempty"`
600 Sender *User `json:"sender,omitempty"`
601 Installation *Installation `json:"installation,omitempty"`
602 }
603
604
605
606
607
608
609
610 type PullRequestEvent struct {
611
612
613
614
615
616
617
618 Action *string `json:"action,omitempty"`
619 Assignee *User `json:"assignee,omitempty"`
620 Number *int `json:"number,omitempty"`
621 PullRequest *PullRequest `json:"pull_request,omitempty"`
622
623
624 Changes *EditChange `json:"changes,omitempty"`
625
626
627
628 RequestedReviewer *User `json:"requested_reviewer,omitempty"`
629
630
631 RequestedTeam *Team `json:"requested_team,omitempty"`
632 Repo *Repository `json:"repository,omitempty"`
633 Sender *User `json:"sender,omitempty"`
634 Installation *Installation `json:"installation,omitempty"`
635 Label *Label `json:"label,omitempty"`
636
637
638
639 Organization *Organization `json:"organization,omitempty"`
640
641
642 Before *string `json:"before,omitempty"`
643 After *string `json:"after,omitempty"`
644 }
645
646
647
648
649
650
651 type PullRequestReviewEvent struct {
652
653 Action *string `json:"action,omitempty"`
654 Review *PullRequestReview `json:"review,omitempty"`
655 PullRequest *PullRequest `json:"pull_request,omitempty"`
656
657
658 Repo *Repository `json:"repository,omitempty"`
659 Sender *User `json:"sender,omitempty"`
660 Installation *Installation `json:"installation,omitempty"`
661
662
663
664 Organization *Organization `json:"organization,omitempty"`
665 }
666
667
668
669
670
671
672 type PullRequestReviewCommentEvent struct {
673
674
675 Action *string `json:"action,omitempty"`
676 PullRequest *PullRequest `json:"pull_request,omitempty"`
677 Comment *PullRequestComment `json:"comment,omitempty"`
678
679
680 Changes *EditChange `json:"changes,omitempty"`
681 Repo *Repository `json:"repository,omitempty"`
682 Sender *User `json:"sender,omitempty"`
683 Installation *Installation `json:"installation,omitempty"`
684 }
685
686
687
688
689 type PushEvent struct {
690 PushID *int64 `json:"push_id,omitempty"`
691 Head *string `json:"head,omitempty"`
692 Ref *string `json:"ref,omitempty"`
693 Size *int `json:"size,omitempty"`
694 Commits []*HeadCommit `json:"commits,omitempty"`
695 Before *string `json:"before,omitempty"`
696 DistinctSize *int `json:"distinct_size,omitempty"`
697
698
699 After *string `json:"after,omitempty"`
700 Created *bool `json:"created,omitempty"`
701 Deleted *bool `json:"deleted,omitempty"`
702 Forced *bool `json:"forced,omitempty"`
703 BaseRef *string `json:"base_ref,omitempty"`
704 Compare *string `json:"compare,omitempty"`
705 Repo *PushEventRepository `json:"repository,omitempty"`
706 HeadCommit *HeadCommit `json:"head_commit,omitempty"`
707 Pusher *User `json:"pusher,omitempty"`
708 Sender *User `json:"sender,omitempty"`
709 Installation *Installation `json:"installation,omitempty"`
710 }
711
712 func (p PushEvent) String() string {
713 return Stringify(p)
714 }
715
716
717 type HeadCommit struct {
718 Message *string `json:"message,omitempty"`
719 Author *CommitAuthor `json:"author,omitempty"`
720 URL *string `json:"url,omitempty"`
721 Distinct *bool `json:"distinct,omitempty"`
722
723
724 SHA *string `json:"sha,omitempty"`
725
726
727 ID *string `json:"id,omitempty"`
728 TreeID *string `json:"tree_id,omitempty"`
729 Timestamp *Timestamp `json:"timestamp,omitempty"`
730 Committer *CommitAuthor `json:"committer,omitempty"`
731 Added []string `json:"added,omitempty"`
732 Removed []string `json:"removed,omitempty"`
733 Modified []string `json:"modified,omitempty"`
734 }
735
736 func (p HeadCommit) String() string {
737 return Stringify(p)
738 }
739
740
741 type PushEventRepository struct {
742 ID *int64 `json:"id,omitempty"`
743 NodeID *string `json:"node_id,omitempty"`
744 Name *string `json:"name,omitempty"`
745 FullName *string `json:"full_name,omitempty"`
746 Owner *User `json:"owner,omitempty"`
747 Private *bool `json:"private,omitempty"`
748 Description *string `json:"description,omitempty"`
749 Fork *bool `json:"fork,omitempty"`
750 CreatedAt *Timestamp `json:"created_at,omitempty"`
751 PushedAt *Timestamp `json:"pushed_at,omitempty"`
752 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
753 Homepage *string `json:"homepage,omitempty"`
754 PullsURL *string `json:"pulls_url,omitempty"`
755 Size *int `json:"size,omitempty"`
756 StargazersCount *int `json:"stargazers_count,omitempty"`
757 WatchersCount *int `json:"watchers_count,omitempty"`
758 Language *string `json:"language,omitempty"`
759 HasIssues *bool `json:"has_issues,omitempty"`
760 HasDownloads *bool `json:"has_downloads,omitempty"`
761 HasWiki *bool `json:"has_wiki,omitempty"`
762 HasPages *bool `json:"has_pages,omitempty"`
763 ForksCount *int `json:"forks_count,omitempty"`
764 Archived *bool `json:"archived,omitempty"`
765 Disabled *bool `json:"disabled,omitempty"`
766 OpenIssuesCount *int `json:"open_issues_count,omitempty"`
767 DefaultBranch *string `json:"default_branch,omitempty"`
768 MasterBranch *string `json:"master_branch,omitempty"`
769 Organization *string `json:"organization,omitempty"`
770 URL *string `json:"url,omitempty"`
771 ArchiveURL *string `json:"archive_url,omitempty"`
772 HTMLURL *string `json:"html_url,omitempty"`
773 StatusesURL *string `json:"statuses_url,omitempty"`
774 GitURL *string `json:"git_url,omitempty"`
775 SSHURL *string `json:"ssh_url,omitempty"`
776 CloneURL *string `json:"clone_url,omitempty"`
777 SVNURL *string `json:"svn_url,omitempty"`
778 }
779
780
781 type PushEventRepoOwner struct {
782 Name *string `json:"name,omitempty"`
783 Email *string `json:"email,omitempty"`
784 }
785
786
787
788
789
790
791 type ReleaseEvent struct {
792
793
794 Action *string `json:"action,omitempty"`
795 Release *RepositoryRelease `json:"release,omitempty"`
796
797
798 Repo *Repository `json:"repository,omitempty"`
799 Sender *User `json:"sender,omitempty"`
800 Installation *Installation `json:"installation,omitempty"`
801 }
802
803
804
805
806
807
808
809
810
811
812 type RepositoryEvent struct {
813
814
815
816 Action *string `json:"action,omitempty"`
817 Repo *Repository `json:"repository,omitempty"`
818
819
820 Org *Organization `json:"organization,omitempty"`
821 Sender *User `json:"sender,omitempty"`
822 Installation *Installation `json:"installation,omitempty"`
823 }
824
825
826
827
828 type RepositoryDispatchEvent struct {
829
830 Action *string `json:"action,omitempty"`
831 Branch *string `json:"branch,omitempty"`
832 ClientPayload json.RawMessage `json:"client_payload,omitempty"`
833 Repo *Repository `json:"repository,omitempty"`
834
835
836 Org *Organization `json:"organization,omitempty"`
837 Sender *User `json:"sender,omitempty"`
838 Installation *Installation `json:"installation,omitempty"`
839 }
840
841
842
843
844 type RepositoryVulnerabilityAlertEvent struct {
845
846 Action *string `json:"action,omitempty"`
847
848
849 Alert *struct {
850 ID *int64 `json:"id,omitempty"`
851 AffectedRange *string `json:"affected_range,omitempty"`
852 AffectedPackageName *string `json:"affected_package_name,omitempty"`
853 ExternalReference *string `json:"external_reference,omitempty"`
854 ExternalIdentifier *string `json:"external_identifier,omitempty"`
855 FixedIn *string `json:"fixed_in,omitempty"`
856 Dismisser *User `json:"dismisser,omitempty"`
857 DismissReason *string `json:"dismiss_reason,omitempty"`
858 DismissedAt *Timestamp `json:"dismissed_at,omitempty"`
859 } `json:"alert,omitempty"`
860
861
862 Repository *Repository `json:"repository,omitempty"`
863 }
864
865
866
867
868
869 type StarEvent struct {
870
871 Action *string `json:"action,omitempty"`
872
873
874 StarredAt *Timestamp `json:"starred_at,omitempty"`
875 }
876
877
878
879
880
881
882
883
884 type StatusEvent struct {
885 SHA *string `json:"sha,omitempty"`
886
887 State *string `json:"state,omitempty"`
888 Description *string `json:"description,omitempty"`
889 TargetURL *string `json:"target_url,omitempty"`
890 Branches []*Branch `json:"branches,omitempty"`
891
892
893 ID *int64 `json:"id,omitempty"`
894 Name *string `json:"name,omitempty"`
895 Context *string `json:"context,omitempty"`
896 Commit *RepositoryCommit `json:"commit,omitempty"`
897 CreatedAt *Timestamp `json:"created_at,omitempty"`
898 UpdatedAt *Timestamp `json:"updated_at,omitempty"`
899 Repo *Repository `json:"repository,omitempty"`
900 Sender *User `json:"sender,omitempty"`
901 Installation *Installation `json:"installation,omitempty"`
902 }
903
904
905
906
907
908
909
910
911 type TeamEvent struct {
912 Action *string `json:"action,omitempty"`
913 Team *Team `json:"team,omitempty"`
914 Changes *TeamChange `json:"changes,omitempty"`
915 Repo *Repository `json:"repository,omitempty"`
916
917
918 Org *Organization `json:"organization,omitempty"`
919 Sender *User `json:"sender,omitempty"`
920 Installation *Installation `json:"installation,omitempty"`
921 }
922
923
924
925
926
927
928
929
930 type TeamAddEvent struct {
931 Team *Team `json:"team,omitempty"`
932 Repo *Repository `json:"repository,omitempty"`
933
934
935 Org *Organization `json:"organization,omitempty"`
936 Sender *User `json:"sender,omitempty"`
937 Installation *Installation `json:"installation,omitempty"`
938 }
939
940
941
942
943
944
945
946 type UserEvent struct {
947 User *User `json:"user,omitempty"`
948
949 Action *string `json:"action,omitempty"`
950 Enterprise *Enterprise `json:"enterprise,omitempty"`
951 Sender *User `json:"sender,omitempty"`
952 }
953
954
955
956
957
958
959
960
961 type WatchEvent struct {
962
963 Action *string `json:"action,omitempty"`
964
965
966 Repo *Repository `json:"repository,omitempty"`
967 Sender *User `json:"sender,omitempty"`
968 Installation *Installation `json:"installation,omitempty"`
969 }
970
971
972
973
974
975 type WorkflowDispatchEvent struct {
976 Inputs json.RawMessage `json:"inputs,omitempty"`
977 Ref *string `json:"ref,omitempty"`
978 Workflow *string `json:"workflow,omitempty"`
979
980
981 Repo *Repository `json:"repository,omitempty"`
982 Org *Organization `json:"organization,omitempty"`
983 Sender *User `json:"sender,omitempty"`
984 }
985
986
987
988
989 type WorkflowRunEvent struct {
990 Action *string `json:"action,omitempty"`
991
992
993 Org *Organization `json:"organization,omitempty"`
994 Repo *Repository `json:"repository,omitempty"`
995 Sender *User `json:"sender,omitempty"`
996 }
997
View as plain text