diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-05-08 21:02:25 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-05-08 21:02:25 +0800 |
commit | 8eb15815f18dcef0ded3f15835b4f1eadf9335d9 (patch) | |
tree | 376e0d32f09863d77521cf4af82a1fa90ce0e045 /modules/hooks/hooks.go | |
parent | 11ca10ab2fa9c0e0c8036d33bd31f4815ceb490e (diff) | |
parent | 23a857d107b06b5639b337aba2e335d3d66ef9db (diff) |
Merge remote-tracking branch 'origin/dev' into dev
Diffstat (limited to 'modules/hooks/hooks.go')
-rw-r--r-- | modules/hooks/hooks.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/hooks/hooks.go b/modules/hooks/hooks.go index a3a59454..6ae4418b 100644 --- a/modules/hooks/hooks.go +++ b/modules/hooks/hooks.go @@ -30,11 +30,23 @@ type PayloadCommit struct { Author *PayloadAuthor `json:"author"` } +type PayloadRepo struct { + Id int64 `json:"id"` + Name string `json:"name"` + Url string `json:"url"` + Description string `json:"description"` + Website string `json:"website"` + Watchers int `json:"watchers"` + Owner *PayloadAuthor `json:"author"` + Private bool `json:"private"` +} + // Payload represents 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"` } |