Add committer information to webhook payload. (#40)
This commit is contained in:
parent
9408f9de81
commit
9cf52efdff
1 changed files with 11 additions and 4 deletions
|
@ -80,6 +80,12 @@ type PayloadAuthor struct {
|
||||||
UserName string `json:"username"`
|
UserName string `json:"username"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PayloadCommitter struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Email string `json:"email"`
|
||||||
|
UserName string `json:"username"`
|
||||||
|
}
|
||||||
|
|
||||||
type PayloadUser struct {
|
type PayloadUser struct {
|
||||||
UserName string `json:"login"`
|
UserName string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
|
@ -91,6 +97,7 @@ type PayloadCommit struct {
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Author *PayloadAuthor `json:"author"`
|
Author *PayloadAuthor `json:"author"`
|
||||||
|
Committer *PayloadCommitter `json:"committer"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PayloadRepo struct {
|
type PayloadRepo struct {
|
||||||
|
|
Loading…
Reference in a new issue