@@ -116,14 +116,7 @@ var (
116
116
_ Payloader = & PackagePayload {}
117
117
)
118
118
119
- // _________ __
120
- // \_ ___ \_______ ____ _____ _/ |_ ____
121
- // / \ \/\_ __ \_/ __ \\__ \\ __\/ __ \
122
- // \ \____| | \/\ ___/ / __ \| | \ ___/
123
- // \______ /|__| \___ >____ /__| \___ >
124
- // \/ \/ \/ \/
125
-
126
- // CreatePayload FIXME
119
+ // CreatePayload represents a payload information of create event.
127
120
type CreatePayload struct {
128
121
Sha string `json:"sha"`
129
122
Ref string `json:"ref"`
@@ -157,13 +150,6 @@ func ParseCreateHook(raw []byte) (*CreatePayload, error) {
157
150
return hook , nil
158
151
}
159
152
160
- // ________ .__ __
161
- // \______ \ ____ | | _____/ |_ ____
162
- // | | \_/ __ \| | _/ __ \ __\/ __ \
163
- // | ` \ ___/| |_\ ___/| | \ ___/
164
- // /_______ /\___ >____/\___ >__| \___ >
165
- // \/ \/ \/ \/
166
-
167
153
// PusherType define the type to push
168
154
type PusherType string
169
155
@@ -186,13 +172,6 @@ func (p *DeletePayload) JSONPayload() ([]byte, error) {
186
172
return json .MarshalIndent (p , "" , " " )
187
173
}
188
174
189
- // ___________ __
190
- // \_ _____/__________| | __
191
- // | __)/ _ \_ __ \ |/ /
192
- // | \( <_> ) | \/ <
193
- // \___ / \____/|__| |__|_ \
194
- // \/ \/
195
-
196
175
// ForkPayload represents fork payload
197
176
type ForkPayload struct {
198
177
Forkee * Repository `json:"forkee"`
@@ -232,13 +211,6 @@ func (p *IssueCommentPayload) JSONPayload() ([]byte, error) {
232
211
return json .MarshalIndent (p , "" , " " )
233
212
}
234
213
235
- // __________ .__
236
- // \______ \ ____ | | ____ _____ ______ ____
237
- // | _// __ \| | _/ __ \\__ \ / ___// __ \
238
- // | | \ ___/| |_\ ___/ / __ \_\___ \\ ___/
239
- // |____|_ /\___ >____/\___ >____ /____ >\___ >
240
- // \/ \/ \/ \/ \/ \/
241
-
242
214
// HookReleaseAction defines hook release action type
243
215
type HookReleaseAction string
244
216
@@ -302,13 +274,6 @@ func (p *PushPayload) Branch() string {
302
274
return strings .ReplaceAll (p .Ref , "refs/heads/" , "" )
303
275
}
304
276
305
- // .___
306
- // | | ______ ________ __ ____
307
- // | |/ ___// ___/ | \_/ __ \
308
- // | |\___ \ \___ \| | /\ ___/
309
- // |___/____ >____ >____/ \___ >
310
- // \/ \/ \/
311
-
312
277
// HookIssueAction FIXME
313
278
type HookIssueAction string
314
279
@@ -371,13 +336,6 @@ type ChangesPayload struct {
371
336
Ref * ChangesFromPayload `json:"ref,omitempty"`
372
337
}
373
338
374
- // __________ .__ .__ __________ __
375
- // \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_
376
- // | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
377
- // | | | | / |_| |__ | | \ ___< <_| | | /\ ___/ \___ \ | |
378
- // |____| |____/|____/____/ |____|_ /\___ >__ |____/ \___ >____ > |__|
379
- // \/ \/ |__| \/ \/
380
-
381
339
// PullRequestPayload represents a payload information of pull request event.
382
340
type PullRequestPayload struct {
383
341
Action HookIssueAction `json:"action"`
@@ -402,13 +360,6 @@ type ReviewPayload struct {
402
360
Content string `json:"content"`
403
361
}
404
362
405
- // __ __.__ __ .__
406
- // / \ / \__| | _|__|
407
- // \ \/\/ / | |/ / |
408
- // \ /| | <| |
409
- // \__/\ / |__|__|_ \__|
410
- // \/ \/
411
-
412
363
// HookWikiAction an action that happens to a wiki page
413
364
type HookWikiAction string
414
365
@@ -435,13 +386,6 @@ func (p *WikiPayload) JSONPayload() ([]byte, error) {
435
386
return json .MarshalIndent (p , "" , " " )
436
387
}
437
388
438
- //__________ .__ __
439
- //\______ \ ____ ______ ____ _____|__|/ |_ ___________ ___.__.
440
- // | _// __ \\____ \ / _ \/ ___/ \ __\/ _ \_ __ < | |
441
- // | | \ ___/| |_> > <_> )___ \| || | ( <_> ) | \/\___ |
442
- // |____|_ /\___ > __/ \____/____ >__||__| \____/|__| / ____|
443
- // \/ \/|__| \/ \/
444
-
445
389
// HookRepoAction an action that happens to a repo
446
390
type HookRepoAction string
447
391
@@ -480,7 +424,7 @@ type PackagePayload struct {
480
424
Action HookPackageAction `json:"action"`
481
425
Repository * Repository `json:"repository"`
482
426
Package * Package `json:"package"`
483
- Organization * User `json:"organization"`
427
+ Organization * Organization `json:"organization"`
484
428
Sender * User `json:"sender"`
485
429
}
486
430
0 commit comments