@@ -239,6 +239,8 @@ const (
239
239
HOOK_ISSUE_UNASSIGNED HookIssueAction = "unassigned"
240
240
HOOK_ISSUE_LABEL_UPDATED HookIssueAction = "label_updated"
241
241
HOOK_ISSUE_LABEL_CLEARED HookIssueAction = "label_cleared"
242
+ HOOK_ISSUE_MILESTONED HookIssueAction = "milestoned"
243
+ HOOK_ISSUE_DEMILESTONED HookIssueAction = "demilestoned"
242
244
HOOK_ISSUE_SYNCHRONIZED HookIssueAction = "synchronized"
243
245
)
244
246
@@ -251,6 +253,19 @@ type ChangesPayload struct {
251
253
Body * ChangesFromPayload `json:"body,omitempty"`
252
254
}
253
255
256
+ type IssuesPayload struct {
257
+ Action HookIssueAction `json:"action"`
258
+ Index int64 `json:"number"`
259
+ Issue * Issue `json:"issue"`
260
+ Changes * ChangesPayload `json:"changes,omitempty"`
261
+ Repository * Repository `json:"repository"`
262
+ Sender * User `json:"sender"`
263
+ }
264
+
265
+ func (p * IssuesPayload ) JSONPayload () ([]byte , error ) {
266
+ return json .MarshalIndent (p , "" , " " )
267
+ }
268
+
254
269
// __________ .__ .__ __________ __
255
270
// \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_
256
271
// | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
@@ -262,8 +277,8 @@ type ChangesPayload struct {
262
277
type PullRequestPayload struct {
263
278
Action HookIssueAction `json:"action"`
264
279
Index int64 `json:"number"`
265
- Changes * ChangesPayload `json:"changes,omitempty"`
266
280
PullRequest * PullRequest `json:"pull_request"`
281
+ Changes * ChangesPayload `json:"changes,omitempty"`
267
282
Repository * Repository `json:"repository"`
268
283
Sender * User `json:"sender"`
269
284
}
0 commit comments