2015-10-22 23:36:43 +00:00
|
|
|
package gogs
|
|
|
|
|
2016-05-01 23:30:00 +00:00
|
|
|
type pushHook struct {
|
2015-10-22 23:36:43 +00:00
|
|
|
Ref string `json:"ref"`
|
|
|
|
Before string `json:"before"`
|
|
|
|
After string `json:"after"`
|
|
|
|
Compare string `json:"compare_url"`
|
2016-05-06 20:14:19 +00:00
|
|
|
RefType string `json:"ref_type"`
|
2015-10-22 23:36:43 +00:00
|
|
|
|
|
|
|
Pusher struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Email string `json:"email"`
|
2016-11-25 12:06:07 +00:00
|
|
|
Login string `json:"login"`
|
2015-10-22 23:36:43 +00:00
|
|
|
Username string `json:"username"`
|
|
|
|
} `json:"pusher"`
|
|
|
|
|
|
|
|
Repo struct {
|
2016-11-25 12:06:07 +00:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
FullName string `json:"full_name"`
|
|
|
|
URL string `json:"html_url"`
|
|
|
|
Private bool `json:"private"`
|
|
|
|
Owner struct {
|
2015-10-22 23:36:43 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
} `json:"owner"`
|
|
|
|
} `json:"repository"`
|
|
|
|
|
|
|
|
Commits []struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Message string `json:"message"`
|
2016-05-01 23:30:00 +00:00
|
|
|
URL string `json:"url"`
|
2015-10-22 23:36:43 +00:00
|
|
|
} `json:"commits"`
|
|
|
|
|
|
|
|
Sender struct {
|
2016-11-25 12:06:07 +00:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
Login string `json:"login"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
Avatar string `json:"avatar_url"`
|
2015-10-22 23:36:43 +00:00
|
|
|
} `json:"sender"`
|
|
|
|
}
|