aboutsummaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
authorChristopher Brickley <brickley@gmail.com>2014-09-17 09:11:51 -0400
committerChristopher Brickley <brickley@gmail.com>2014-09-17 09:20:14 -0400
commitf94d7c3f51969d300c3ee1ffdecd642363c207b4 (patch)
treed0ae8728dd3296f2b85f200fcfe7894be48046fa /models/webhook.go
parent061a879cea39a1cce56dcb394b912fad50d7b77a (diff)
downloadgitea-f94d7c3f51969d300c3ee1ffdecd642363c207b4.tar.gz
gitea-f94d7c3f51969d300c3ee1ffdecd642363c207b4.zip
clarify name/username/owner/pusher for webhook
Diffstat (limited to 'models/webhook.go')
-rw-r--r--models/webhook.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 3c07cc8179..9508c98a5e 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -154,8 +154,9 @@ const (
)
type PayloadAuthor struct {
- Name string `json:"name"`
- Email string `json:"email"`
+ Name string `json:"name"`
+ Email string `json:"email"`
+ UserName string `json:"username"`
}
type PayloadCommit struct {
@@ -172,7 +173,7 @@ type PayloadRepo struct {
Description string `json:"description"`
Website string `json:"website"`
Watchers int `json:"watchers"`
- Owner *PayloadAuthor `json:"author"`
+ Owner *PayloadAuthor `json:"owner"`
Private bool `json:"private"`
}