aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/gogits
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-25 03:35:26 -0500
committerUnknwon <u@gogs.io>2017-02-27 22:48:18 -0500
commitb06f2997489d58cc5a4375044e378c0565ea09d4 (patch)
treefd02710adc4ed574fe28aa173b2f02ac68bd6568 /vendor/github.com/gogits
parentbeea014343251fc9f379f996553c0b8030723464 (diff)
webhook: add fork event
Diffstat (limited to 'vendor/github.com/gogits')
-rw-r--r--vendor/github.com/gogits/go-gogs-client/repo_hook.go17
1 files changed, 17 insertions, 0 deletions
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, "", " ")
+}
+
// __________ .__
// \______ \__ __ _____| |__
// | ___/ | \/ ___/ | \