@@ -239,6 +239,8 @@ const (
239239 HOOK_ISSUE_UNASSIGNED HookIssueAction = "unassigned"
240240 HOOK_ISSUE_LABEL_UPDATED HookIssueAction = "label_updated"
241241 HOOK_ISSUE_LABEL_CLEARED HookIssueAction = "label_cleared"
242+ HOOK_ISSUE_MILESTONED HookIssueAction = "milestoned"
243+ HOOK_ISSUE_DEMILESTONED HookIssueAction = "demilestoned"
242244 HOOK_ISSUE_SYNCHRONIZED HookIssueAction = "synchronized"
243245)
244246
@@ -251,6 +253,19 @@ type ChangesPayload struct {
251253 Body * ChangesFromPayload `json:"body,omitempty"`
252254}
253255
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+
254269// __________ .__ .__ __________ __
255270// \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_
256271// | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
@@ -262,8 +277,8 @@ type ChangesPayload struct {
262277type PullRequestPayload struct {
263278 Action HookIssueAction `json:"action"`
264279 Index int64 `json:"number"`
265- Changes * ChangesPayload `json:"changes,omitempty"`
266280 PullRequest * PullRequest `json:"pull_request"`
281+ Changes * ChangesPayload `json:"changes,omitempty"`
267282 Repository * Repository `json:"repository"`
268283 Sender * User `json:"sender"`
269284}
0 commit comments