@@ -92,7 +92,10 @@ type PayloadCommit struct {
92
92
var (
93
93
_ Payloader = & CreatePayload {}
94
94
_ Payloader = & DeletePayload {}
95
+ _ Payloader = & ForkPayload {}
95
96
_ Payloader = & PushPayload {}
97
+ _ Payloader = & IssuesPayload {}
98
+ _ Payloader = & IssueCommentPayload {}
96
99
_ Payloader = & PullRequestPayload {}
97
100
)
98
101
@@ -266,6 +269,27 @@ func (p *IssuesPayload) JSONPayload() ([]byte, error) {
266
269
return json .MarshalIndent (p , "" , " " )
267
270
}
268
271
272
+ type HookIssueCommentAction string
273
+
274
+ const (
275
+ HOOK_ISSUE_COMMENT_CREATED HookIssueCommentAction = "created"
276
+ HOOK_ISSUE_COMMENT_EDITED HookIssueCommentAction = "edited"
277
+ HOOK_ISSUE_COMMENT_DELETED HookIssueCommentAction = "deleted"
278
+ )
279
+
280
+ type IssueCommentPayload struct {
281
+ Action HookIssueCommentAction `json:"action"`
282
+ Issue * Issue `json:"issue"`
283
+ Comment * Comment `json:"comment"`
284
+ Changes * ChangesPayload `json:"changes,omitempty"`
285
+ Repository * Repository `json:"repository"`
286
+ Sender * User `json:"sender"`
287
+ }
288
+
289
+ func (p * IssueCommentPayload ) JSONPayload () ([]byte , error ) {
290
+ return json .MarshalIndent (p , "" , " " )
291
+ }
292
+
269
293
// __________ .__ .__ __________ __
270
294
// \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_
271
295
// | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
0 commit comments