@@ -132,6 +132,43 @@ type CreateEvent struct {
132
132
Installation * Installation `json:"installation,omitempty"`
133
133
}
134
134
135
+ // CustomPropertyEvent represents a created, deleted or updated custom property.
136
+ // The Webhook event name is "custom_property".
137
+ //
138
+ // Note: this is related to custom property configuration at the enterprise or organization level.
139
+ // See CustomPropertyValuesEvent for activity related to custom property values for a repository.
140
+ //
141
+ // GitHub API docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property
142
+ type CustomPropertyEvent struct {
143
+ // Action possible values are: "created", "deleted", "updated".
144
+ Action * string `json:"action,omitempty"`
145
+ Definition * CustomProperty `json:"definition,omitempty"`
146
+
147
+ // The following fields are only populated by Webhook events.
148
+ Enterprise * Enterprise `json:"enterprise,omitempty"`
149
+ Installation * Installation `json:"installation,omitempty"`
150
+ Org * Organization `json:"organization,omitempty"`
151
+ Sender * User `json:"sender,omitempty"`
152
+ }
153
+
154
+ // CustomPropertyValuesEvent represents an update to a custom property.
155
+ // The Webhook event name is "custom_property_values".
156
+ //
157
+ // GitHub API docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property_values
158
+ type CustomPropertyValuesEvent struct {
159
+ // Action possible values are: "updated".
160
+ Action * string `json:"action,omitempty"`
161
+ NewPropertyValues []* CustomPropertyValue `json:"new_property_values,omitempty"`
162
+ OldPropertyValues []* CustomPropertyValue `json:"old_property_values,omitempty"`
163
+
164
+ // The following fields are only populated by Webhook events.
165
+ Enterprise * Enterprise `json:"enterprise,omitempty"`
166
+ Installation * Installation `json:"installation,omitempty"`
167
+ Repo * Repository `json:"repository,omitempty"`
168
+ Org * Organization `json:"organization,omitempty"`
169
+ Sender * User `json:"sender,omitempty"`
170
+ }
171
+
135
172
// DeleteEvent represents a deleted branch or tag.
136
173
// The Webhook event name is "delete".
137
174
//
0 commit comments