From 6ec859f2b0c1bade67d04f740ec4b9ac9ae0ec98 Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Fri, 24 Feb 2017 12:23:19 -0500
Subject: webhook: send secret with SHA256 HMAC hex digest (#3692)

---
 vendor/github.com/gogits/go-gogs-client/gogs.go      |  2 +-
 vendor/github.com/gogits/go-gogs-client/repo_hook.go | 16 ----------------
 vendor/vendor.json                                   |  6 +++---
 3 files changed, 4 insertions(+), 20 deletions(-)

(limited to 'vendor')

diff --git a/vendor/github.com/gogits/go-gogs-client/gogs.go b/vendor/github.com/gogits/go-gogs-client/gogs.go
index d98062e4..dae81f10 100644
--- a/vendor/github.com/gogits/go-gogs-client/gogs.go
+++ b/vendor/github.com/gogits/go-gogs-client/gogs.go
@@ -14,7 +14,7 @@ import (
 )
 
 func Version() string {
-	return "0.12.5"
+	return "0.12.6"
 }
 
 // Client represents a Gogs API client.
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 7bec411b..6597be5e 100644
--- a/vendor/github.com/gogits/go-gogs-client/repo_hook.go
+++ b/vendor/github.com/gogits/go-gogs-client/repo_hook.go
@@ -70,7 +70,6 @@ func (c *Client) DeleteRepoHook(user, repo string, id int64) error {
 }
 
 type Payloader interface {
-	SetSecret(string)
 	JSONPayload() ([]byte, error)
 }
 
@@ -104,17 +103,12 @@ var (
 //         \/             \/     \/          \/
 
 type CreatePayload struct {
-	Secret  string      `json:"secret"`
 	Ref     string      `json:"ref"`
 	RefType string      `json:"ref_type"`
 	Repo    *Repository `json:"repository"`
 	Sender  *User       `json:"sender"`
 }
 
-func (p *CreatePayload) SetSecret(secret string) {
-	p.Secret = secret
-}
-
 func (p *CreatePayload) JSONPayload() ([]byte, error) {
 	return json.MarshalIndent(p, "", "  ")
 }
@@ -148,7 +142,6 @@ func ParseCreateHook(raw []byte) (*CreatePayload, error) {
 
 // PushPayload represents a payload information of push event.
 type PushPayload struct {
-	Secret     string           `json:"secret"`
 	Ref        string           `json:"ref"`
 	Before     string           `json:"before"`
 	After      string           `json:"after"`
@@ -159,10 +152,6 @@ type PushPayload struct {
 	Sender     *User            `json:"sender"`
 }
 
-func (p *PushPayload) SetSecret(secret string) {
-	p.Secret = secret
-}
-
 func (p *PushPayload) JSONPayload() ([]byte, error) {
 	return json.MarshalIndent(p, "", "  ")
 }
@@ -227,7 +216,6 @@ type ChangesPayload struct {
 
 // PullRequestPayload represents a payload information of pull request event.
 type PullRequestPayload struct {
-	Secret      string          `json:"secret"`
 	Action      HookIssueAction `json:"action"`
 	Index       int64           `json:"number"`
 	Changes     *ChangesPayload `json:"changes,omitempty"`
@@ -236,10 +224,6 @@ type PullRequestPayload struct {
 	Sender      *User           `json:"sender"`
 }
 
-func (p *PullRequestPayload) SetSecret(secret string) {
-	p.Secret = secret
-}
-
 func (p *PullRequestPayload) JSONPayload() ([]byte, error) {
 	return json.MarshalIndent(p, "", "  ")
 }
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 6e9668b0..3b813da6 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -165,10 +165,10 @@
 			"revisionTime": "2017-02-19T18:16:29Z"
 		},
 		{
-			"checksumSHA1": "xvG+RgJODQqlmdAkHUQK2TyLR88=",
+			"checksumSHA1": "exKX51W/Hieq7OOmYK2gYn+Huuw=",
 			"path": "github.com/gogits/go-gogs-client",
-			"revision": "89ff140a38c057e71a1012af6d666fbc037ba606",
-			"revisionTime": "2017-02-14T02:02:40Z"
+			"revision": "f12fbacb5495120dc62dae7cfdf140d39bf6f715",
+			"revisionTime": "2017-02-24T06:16:35Z"
 		},
 		{
 			"checksumSHA1": "p4yoFWgDiTfpu1JYgh26t6+VDTk=",
-- 
cgit v1.2.3