@@ -106,10 +106,11 @@ type CreateEvent struct {
106
106
RefType * string `json:"ref_type,omitempty"`
107
107
MasterBranch * string `json:"master_branch,omitempty"`
108
108
Description * string `json:"description,omitempty"`
109
+ PusherType * string `json:"pusher_type,omitempty"`
109
110
110
111
// The following fields are only populated by Webhook events.
111
- PusherType * string `json:"pusher_type,omitempty"`
112
112
Repo * Repository `json:"repository,omitempty"`
113
+ Org * Organization `json:"organization,omitempty"`
113
114
Sender * User `json:"sender,omitempty"`
114
115
Installation * Installation `json:"installation,omitempty"`
115
116
}
@@ -493,13 +494,14 @@ type IssuesEvent struct {
493
494
type LabelEvent struct {
494
495
// Action is the action that was performed. Possible values are:
495
496
// "created", "edited", "deleted"
496
- Action * string `json:"action,omitempty"`
497
- Label * Label `json:"label,omitempty"`
497
+ Action * string `json:"action,omitempty"`
498
+ Label * Label `json:"label,omitempty"`
499
+ Changes * EditChange `json:"changes,omitempty"`
498
500
499
501
// The following fields are only populated by Webhook events.
500
- Changes * EditChange `json:"changes,omitempty"`
501
502
Repo * Repository `json:"repository,omitempty"`
502
503
Org * Organization `json:"organization,omitempty"`
504
+ Sender * User `json:"sender,omitempty"`
503
505
Installation * Installation `json:"installation,omitempty"`
504
506
}
505
507
@@ -574,6 +576,9 @@ type MetaEvent struct {
574
576
Hook * Hook `json:"hook,omitempty"`
575
577
576
578
// The following fields are only populated by Webhook events.
579
+ Repo * Repository `json:"repository,omitempty"`
580
+ Org * Organization `json:"organization,omitempty"`
581
+ Sender * User `json:"sender,omitempty"`
577
582
Installation * Installation `json:"installation,omitempty"`
578
583
}
579
584
@@ -682,7 +687,12 @@ type PingEvent struct {
682
687
// The ID of the webhook that triggered the ping.
683
688
HookID * int64 `json:"hook_id,omitempty"`
684
689
// The webhook configuration.
685
- Hook * Hook `json:"hook,omitempty"`
690
+ Hook * Hook `json:"hook,omitempty"`
691
+
692
+ // The following fields are only populated by Webhook events.
693
+ Repo * Repository `json:"repository,omitempty"`
694
+ Org * Organization `json:"organization,omitempty"`
695
+ Sender * User `json:"sender,omitempty"`
686
696
Installation * Installation `json:"installation,omitempty"`
687
697
}
688
698
0 commit comments