From b06f2997489d58cc5a4375044e378c0565ea09d4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 25 Feb 2017 03:35:26 -0500 Subject: webhook: add fork event --- vendor/github.com/gogits/go-gogs-client/repo_hook.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'vendor/github.com/gogits/go-gogs-client/repo_hook.go') diff --git a/vendor/github.com/gogits/go-gogs-client/repo_hook.go b/vendor/github.com/gogits/go-gogs-client/repo_hook.go index 49c4a5f7..aa251229 100644 --- a/vendor/github.com/gogits/go-gogs-client/repo_hook.go +++ b/vendor/github.com/gogits/go-gogs-client/repo_hook.go @@ -160,6 +160,23 @@ func (p *DeletePayload) JSONPayload() ([]byte, error) { return json.MarshalIndent(p, "", " ") } +// ___________ __ +// \_ _____/__________| | __ +// | __)/ _ \_ __ \ |/ / +// | \( <_> ) | \/ < +// \___ / \____/|__| |__|_ \ +// \/ \/ + +type ForkPayload struct { + Forkee *Repository `json:"forkee"` + Repo *Repository `json:"repository"` + Sender *User `json:"sender"` +} + +func (p *ForkPayload) JSONPayload() ([]byte, error) { + return json.MarshalIndent(p, "", " ") +} + // __________ .__ // \______ \__ __ _____| |__ // | ___/ | \/ ___/ | \ -- cgit v1.2.3