mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
43 lines
1.0 KiB
Go
43 lines
1.0 KiB
Go
package gogs
|
|
|
|
type pushHook struct {
|
|
Ref string `json:"ref"`
|
|
Before string `json:"before"`
|
|
After string `json:"after"`
|
|
Compare string `json:"compare_url"`
|
|
RefType string `json:"ref_type"`
|
|
|
|
Pusher struct {
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Login string `json:"login"`
|
|
Username string `json:"username"`
|
|
} `json:"pusher"`
|
|
|
|
Repo struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
FullName string `json:"full_name"`
|
|
URL string `json:"html_url"`
|
|
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"`
|
|
URL string `json:"url"`
|
|
} `json:"commits"`
|
|
|
|
Sender struct {
|
|
ID int64 `json:"id"`
|
|
Login string `json:"login"`
|
|
Username string `json:"username"`
|
|
Avatar string `json:"avatar_url"`
|
|
} `json:"sender"`
|
|
}
|