@@ -116,14 +116,7 @@ var (
116116 _ Payloader = & PackagePayload {}
117117)
118118
119- // _________ __
120- // \_ ___ \_______ ____ _____ _/ |_ ____
121- // / \ \/\_ __ \_/ __ \\__ \\ __\/ __ \
122- // \ \____| | \/\ ___/ / __ \| | \ ___/
123- // \______ /|__| \___ >____ /__| \___ >
124- // \/ \/ \/ \/
125-
126- // CreatePayload FIXME
119+ // CreatePayload represents a payload information of create event.
127120type CreatePayload struct {
128121 Sha string `json:"sha"`
129122 Ref string `json:"ref"`
@@ -157,13 +150,6 @@ func ParseCreateHook(raw []byte) (*CreatePayload, error) {
157150 return hook , nil
158151}
159152
160- // ________ .__ __
161- // \______ \ ____ | | _____/ |_ ____
162- // | | \_/ __ \| | _/ __ \ __\/ __ \
163- // | ` \ ___/| |_\ ___/| | \ ___/
164- // /_______ /\___ >____/\___ >__| \___ >
165- // \/ \/ \/ \/
166-
167153// PusherType define the type to push
168154type PusherType string
169155
@@ -186,13 +172,6 @@ func (p *DeletePayload) JSONPayload() ([]byte, error) {
186172 return json .MarshalIndent (p , "" , " " )
187173}
188174
189- // ___________ __
190- // \_ _____/__________| | __
191- // | __)/ _ \_ __ \ |/ /
192- // | \( <_> ) | \/ <
193- // \___ / \____/|__| |__|_ \
194- // \/ \/
195-
196175// ForkPayload represents fork payload
197176type ForkPayload struct {
198177 Forkee * Repository `json:"forkee"`
@@ -232,13 +211,6 @@ func (p *IssueCommentPayload) JSONPayload() ([]byte, error) {
232211 return json .MarshalIndent (p , "" , " " )
233212}
234213
235- // __________ .__
236- // \______ \ ____ | | ____ _____ ______ ____
237- // | _// __ \| | _/ __ \\__ \ / ___// __ \
238- // | | \ ___/| |_\ ___/ / __ \_\___ \\ ___/
239- // |____|_ /\___ >____/\___ >____ /____ >\___ >
240- // \/ \/ \/ \/ \/ \/
241-
242214// HookReleaseAction defines hook release action type
243215type HookReleaseAction string
244216
@@ -302,13 +274,6 @@ func (p *PushPayload) Branch() string {
302274 return strings .ReplaceAll (p .Ref , "refs/heads/" , "" )
303275}
304276
305- // .___
306- // | | ______ ________ __ ____
307- // | |/ ___// ___/ | \_/ __ \
308- // | |\___ \ \___ \| | /\ ___/
309- // |___/____ >____ >____/ \___ >
310- // \/ \/ \/
311-
312277// HookIssueAction FIXME
313278type HookIssueAction string
314279
@@ -371,13 +336,6 @@ type ChangesPayload struct {
371336 Ref * ChangesFromPayload `json:"ref,omitempty"`
372337}
373338
374- // __________ .__ .__ __________ __
375- // \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_
376- // | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
377- // | | | | / |_| |__ | | \ ___< <_| | | /\ ___/ \___ \ | |
378- // |____| |____/|____/____/ |____|_ /\___ >__ |____/ \___ >____ > |__|
379- // \/ \/ |__| \/ \/
380-
381339// PullRequestPayload represents a payload information of pull request event.
382340type PullRequestPayload struct {
383341 Action HookIssueAction `json:"action"`
@@ -402,13 +360,6 @@ type ReviewPayload struct {
402360 Content string `json:"content"`
403361}
404362
405- // __ __.__ __ .__
406- // / \ / \__| | _|__|
407- // \ \/\/ / | |/ / |
408- // \ /| | <| |
409- // \__/\ / |__|__|_ \__|
410- // \/ \/
411-
412363// HookWikiAction an action that happens to a wiki page
413364type HookWikiAction string
414365
@@ -435,13 +386,6 @@ func (p *WikiPayload) JSONPayload() ([]byte, error) {
435386 return json .MarshalIndent (p , "" , " " )
436387}
437388
438- //__________ .__ __
439- //\______ \ ____ ______ ____ _____|__|/ |_ ___________ ___.__.
440- // | _// __ \\____ \ / _ \/ ___/ \ __\/ _ \_ __ < | |
441- // | | \ ___/| |_> > <_> )___ \| || | ( <_> ) | \/\___ |
442- // |____|_ /\___ > __/ \____/____ >__||__| \____/|__| / ____|
443- // \/ \/|__| \/ \/
444-
445389// HookRepoAction an action that happens to a repo
446390type HookRepoAction string
447391
@@ -480,7 +424,7 @@ type PackagePayload struct {
480424 Action HookPackageAction `json:"action"`
481425 Repository * Repository `json:"repository"`
482426 Package * Package `json:"package"`
483- Organization * User `json:"organization"`
427+ Organization * Organization `json:"organization"`
484428 Sender * User `json:"sender"`
485429}
486430
0 commit comments