diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/gogits/go-gogs-client/gogs.go | 2 | ||||
-rw-r--r-- | vendor/github.com/gogits/go-gogs-client/release.go | 22 | ||||
-rw-r--r-- | vendor/github.com/gogits/go-gogs-client/repo_hook.go | 27 | ||||
-rw-r--r-- | vendor/vendor.json | 6 |
4 files changed, 53 insertions, 4 deletions
diff --git a/vendor/github.com/gogits/go-gogs-client/gogs.go b/vendor/github.com/gogits/go-gogs-client/gogs.go index 1d40a25d..e691dd64 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.9" + return "0.12.10" } // Client represents a Gogs API client. diff --git a/vendor/github.com/gogits/go-gogs-client/release.go b/vendor/github.com/gogits/go-gogs-client/release.go new file mode 100644 index 00000000..69c7f3b9 --- /dev/null +++ b/vendor/github.com/gogits/go-gogs-client/release.go @@ -0,0 +1,22 @@ +// Copyright 2017 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package gogs + +import ( + "time" +) + +// Release represents a release API object. +type Release struct { + ID int64 `json:"id"` + TagName string `json:"tag_name"` + TargetCommitish string `json:"target_commitish"` + Name string `json:"name"` + Body string `json:"body"` + Draft bool `json:"draft"` + Prerelease bool `json:"prerelease"` + Author *User `json:"author"` + Created time.Time `json:"created_at"` +} 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 5dbe9c2d..1ea75468 100644 --- a/vendor/github.com/gogits/go-gogs-client/repo_hook.go +++ b/vendor/github.com/gogits/go-gogs-client/repo_hook.go @@ -256,6 +256,7 @@ type ChangesPayload struct { Body *ChangesFromPayload `json:"body,omitempty"` } +// IssuesPayload represents a payload information of issues event. type IssuesPayload struct { Action HookIssueAction `json:"action"` Index int64 `json:"number"` @@ -277,6 +278,7 @@ const ( HOOK_ISSUE_COMMENT_DELETED HookIssueCommentAction = "deleted" ) +// IssueCommentPayload represents a payload information of issue comment event. type IssueCommentPayload struct { Action HookIssueCommentAction `json:"action"` Issue *Issue `json:"issue"` @@ -310,3 +312,28 @@ type PullRequestPayload struct { func (p *PullRequestPayload) JSONPayload() ([]byte, error) { return json.MarshalIndent(p, "", " ") } + +// __________ .__ +// \______ \ ____ | | ____ _____ ______ ____ +// | _// __ \| | _/ __ \\__ \ / ___// __ \ +// | | \ ___/| |_\ ___/ / __ \_\___ \\ ___/ +// |____|_ /\___ >____/\___ >____ /____ >\___ > +// \/ \/ \/ \/ \/ \/ + +type HookReleaseAction string + +const ( + HOOK_RELEASE_PUBLISHED HookReleaseAction = "published" +) + +// ReleasePayload represents a payload information of release event. +type ReleasePayload struct { + Action HookReleaseAction `json:"action"` + Release *Release `json:"release"` + Repository *Repository `json:"repository"` + Sender *User `json:"sender"` +} + +func (p *ReleasePayload) JSONPayload() ([]byte, error) { + return json.MarshalIndent(p, "", " ") +} diff --git a/vendor/vendor.json b/vendor/vendor.json index 4f45a491..c46f40ea 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -165,10 +165,10 @@ "revisionTime": "2017-03-10T19:06:55Z" }, { - "checksumSHA1": "Rvj0LCHGhFQyIM7MzBPt1iRP89c=", + "checksumSHA1": "1p1/OSDPORWbSBCD791BbGh2vVc=", "path": "github.com/gogits/go-gogs-client", - "revision": "8e438478f71b840fcd0b3e810684ea4f6bf476bb", - "revisionTime": "2017-03-09T09:10:09Z" + "revision": "08824b5ad7408bc38f2b9287c94be2f059c9966a", + "revisionTime": "2017-03-11T23:40:19Z" }, { "checksumSHA1": "p4yoFWgDiTfpu1JYgh26t6+VDTk=", |