aboutsummaryrefslogtreecommitdiff
path: root/models/webhook.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-09-01 20:02:34 -0700
committer无闻 <joe2010xtmf@163.com>2014-09-01 20:02:34 -0700
commit85f375433dfb2114477b84350c67e80363747e21 (patch)
tree87ca44e3ed68fe111d16be285f17ff2e52f846b4 /models/webhook.go
parentd55c5b9e289c0c97aa51ffe5cb5b77f703cc2a47 (diff)
parentaf0741da07ec190804fff2a84c3813fc62a1c3ba (diff)
Merge pull request #416 from compressed/compare_commits
Add commit compare functionality
Diffstat (limited to 'models/webhook.go')
-rw-r--r--models/webhook.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 55ed4844..0b7b3a99 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -169,11 +169,14 @@ type BasePayload interface {
// Payload represents a payload information of hook.
type Payload struct {
- Secret string `json:"secret"`
- Ref string `json:"ref"`
- Commits []*PayloadCommit `json:"commits"`
- Repo *PayloadRepo `json:"repository"`
- Pusher *PayloadAuthor `json:"pusher"`
+ Secret string `json:"secret"`
+ Ref string `json:"ref"`
+ Commits []*PayloadCommit `json:"commits"`
+ Repo *PayloadRepo `json:"repository"`
+ Pusher *PayloadAuthor `json:"pusher"`
+ Before string `json:"before"`
+ After string `json:"after"`
+ CompareUrl string `json:"compare_url"`
}
func (p Payload) GetJSONPayload() ([]byte, error) {