aboutsummaryrefslogtreecommitdiff
path: root/vendor
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
parentbeea014343251fc9f379f996553c0b8030723464 (diff)
webhook: add fork event
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/gogits/go-gogs-client/repo_hook.go17
-rw-r--r--vendor/vendor.json6
2 files changed, 20 insertions, 3 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, "", " ")
+}
+
// __________ .__
// \______ \__ __ _____| |__
// | ___/ | \/ ___/ | \
diff --git a/vendor/vendor.json b/vendor/vendor.json
index f26c3177..32b0465a 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -165,10 +165,10 @@
"revisionTime": "2017-02-19T18:16:29Z"
},
{
- "checksumSHA1": "rtJ+nZ9VHh2X2Zon7wLczPAAc/s=",
+ "checksumSHA1": "sAGNvN2IXzD+rra6Y9sxJBpR4L8=",
"path": "github.com/gogits/go-gogs-client",
- "revision": "ba630f557c8349952183305373fa89b155202bac",
- "revisionTime": "2017-02-24T20:25:47Z"
+ "revision": "264a3d5bc98e108f17cc055338dbf4b94faf0d21",
+ "revisionTime": "2017-02-25T08:33:02Z"
},
{
"checksumSHA1": "p4yoFWgDiTfpu1JYgh26t6+VDTk=",