summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
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"`
}