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"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
} `json:"pusher"`
|
|
|
|
|
|
|
|
Repo struct {
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
Name string `json:"name"`
|
2016-05-01 23:30:00 +00:00
|
|
|
URL string `json:"url"`
|
2015-10-22 23:36:43 +00:00
|
|
|
Private bool `json:"private"`
|
|
|
|
Owner struct {
|
|
|
|
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 {
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
Login string `json:"login"`
|
|
|
|
Avatar string `json:"avatar_url"`
|
|
|
|
} `json:"sender"`
|
|
|
|
}
|