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/repo_hook.go | 24 | ||||
-rw-r--r-- | vendor/vendor.json | 6 |
3 files changed, 28 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 c34d87f5..1d40a25d 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.8" + return "0.12.9" } // 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 ca142e23..5dbe9c2d 100644 --- a/vendor/github.com/gogits/go-gogs-client/repo_hook.go +++ b/vendor/github.com/gogits/go-gogs-client/repo_hook.go @@ -92,7 +92,10 @@ type PayloadCommit struct { var ( _ Payloader = &CreatePayload{} _ Payloader = &DeletePayload{} + _ Payloader = &ForkPayload{} _ Payloader = &PushPayload{} + _ Payloader = &IssuesPayload{} + _ Payloader = &IssueCommentPayload{} _ Payloader = &PullRequestPayload{} ) @@ -266,6 +269,27 @@ func (p *IssuesPayload) JSONPayload() ([]byte, error) { return json.MarshalIndent(p, "", " ") } +type HookIssueCommentAction string + +const ( + HOOK_ISSUE_COMMENT_CREATED HookIssueCommentAction = "created" + HOOK_ISSUE_COMMENT_EDITED HookIssueCommentAction = "edited" + HOOK_ISSUE_COMMENT_DELETED HookIssueCommentAction = "deleted" +) + +type IssueCommentPayload struct { + Action HookIssueCommentAction `json:"action"` + Issue *Issue `json:"issue"` + Comment *Comment `json:"comment"` + Changes *ChangesPayload `json:"changes,omitempty"` + Repository *Repository `json:"repository"` + Sender *User `json:"sender"` +} + +func (p *IssueCommentPayload) JSONPayload() ([]byte, error) { + return json.MarshalIndent(p, "", " ") +} + // __________ .__ .__ __________ __ // \______ \__ __| | | | \______ \ ____ ________ __ ____ _______/ |_ // | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\ diff --git a/vendor/vendor.json b/vendor/vendor.json index 5542d86a..7bccaadb 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -165,10 +165,10 @@ "revisionTime": "2017-02-19T18:16:29Z" }, { - "checksumSHA1": "Ut3Nu1GaTwTt+Q4k+t9tV3/3nF8=", + "checksumSHA1": "Rvj0LCHGhFQyIM7MzBPt1iRP89c=", "path": "github.com/gogits/go-gogs-client", - "revision": "559fec59f2c88391ba624da5c40f77c49d8c84eb", - "revisionTime": "2017-03-09T05:00:34Z" + "revision": "8e438478f71b840fcd0b3e810684ea4f6bf476bb", + "revisionTime": "2017-03-09T09:10:09Z" }, { "checksumSHA1": "p4yoFWgDiTfpu1JYgh26t6+VDTk=", |