summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
authorChristopher Brickley <brickley@gmail.com>2014-08-26 08:20:18 -0400
committerChristopher Brickley <brickley@gmail.com>2014-09-01 14:56:19 -0400
commit00a864e693434bce687f3f5145d8369583197b78 (patch)
treedf25bf583ec2a0070c159bcb3d0d161d931f6801 /models/webhook.go
parentd55c5b9e289c0c97aa51ffe5cb5b77f703cc2a47 (diff)
downloadgitea-00a864e693434bce687f3f5145d8369583197b78.tar.gz
gitea-00a864e693434bce687f3f5145d8369583197b78.zip
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 55ed4844ed..0b7b3a9948 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) {