@@ -256,6 +256,7 @@ type ChangesPayload struct {
256256 Body * ChangesFromPayload `json:"body,omitempty"`
257257}
258258
259+ // IssuesPayload represents a payload information of issues event.
259260type IssuesPayload struct {
260261 Action HookIssueAction `json:"action"`
261262 Index int64 `json:"number"`
@@ -277,6 +278,7 @@ const (
277278 HOOK_ISSUE_COMMENT_DELETED HookIssueCommentAction = "deleted"
278279)
279280
281+ // IssueCommentPayload represents a payload information of issue comment event.
280282type IssueCommentPayload struct {
281283 Action HookIssueCommentAction `json:"action"`
282284 Issue * Issue `json:"issue"`
@@ -310,3 +312,28 @@ type PullRequestPayload struct {
310312func (p * PullRequestPayload ) JSONPayload () ([]byte , error ) {
311313 return json .MarshalIndent (p , "" , " " )
312314}
315+ 316+ // __________ .__
317+ // \______ \ ____ | | ____ _____ ______ ____
318+ // | _// __ \| | _/ __ \\__ \ / ___// __ \
319+ // | | \ ___/| |_\ ___/ / __ \_\___ \\ ___/
320+ // |____|_ /\___ >____/\___ >____ /____ >\___ >
321+ // \/ \/ \/ \/ \/ \/
322+ 323+ type HookReleaseAction string
324+ 325+ const (
326+ HOOK_RELEASE_PUBLISHED HookReleaseAction = "published"
327+ )
328+ 329+ // ReleasePayload represents a payload information of release event.
330+ type ReleasePayload struct {
331+ Action HookReleaseAction `json:"action"`
332+ Release * Release `json:"release"`
333+ Repository * Repository `json:"repository"`
334+ Sender * User `json:"sender"`
335+ }
336+ 337+ func (p * ReleasePayload ) JSONPayload () ([]byte , error ) {
338+ return json .MarshalIndent (p , "" , " " )
339+ }
0 commit comments