diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-17 14:13:54 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-17 14:13:54 -0400 |
commit | c03f5a2c7cd0c3cba12a8cfbbac03b13136fe9f9 (patch) | |
tree | d0ae8728dd3296f2b85f200fcfe7894be48046fa /models/webhook.go | |
parent | 061a879cea39a1cce56dcb394b912fad50d7b77a (diff) | |
parent | f94d7c3f51969d300c3ee1ffdecd642363c207b4 (diff) |
Merge pull request #480 from compressed/correct_push_user
clarify name/username/owner/pusher for webhook
Diffstat (limited to 'models/webhook.go')
-rw-r--r-- | models/webhook.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/models/webhook.go b/models/webhook.go index 3c07cc81..9508c98a 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"` } |