Skip to content

Commit 264a3d5

Browse files
committed
repo_hook: add ForkPayload
1 parent ba630f5 commit 264a3d5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

repo_hook.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,23 @@ func (p *DeletePayload) JSONPayload() ([]byte, error) {
160160
return json.MarshalIndent(p, "", " ")
161161
}
162162

163+
// ___________ __
164+
// \_ _____/__________| | __
165+
// | __)/ _ \_ __ \ |/ /
166+
// | \( <_> ) | \/ <
167+
// \___ / \____/|__| |__|_ \
168+
// \/ \/
169+
170+
type ForkPayload struct {
171+
Forkee *Repository `json:"forkee"`
172+
Repo *Repository `json:"repository"`
173+
Sender *User `json:"sender"`
174+
}
175+
176+
func (p *ForkPayload) JSONPayload() ([]byte, error) {
177+
return json.MarshalIndent(p, "", " ")
178+
}
179+
163180
// __________ .__
164181
// \______ \__ __ _____| |__
165182
// | ___/ | \/ ___/ | \

0 commit comments

Comments
 (0)