Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 9cf52ef

Browse files
lstahlmanunknwon
authored andcommitted
Add committer information to webhook payload. (#40)
1 parent 9408f9d commit 9cf52ef

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

repo_hook.go

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,24 @@ type PayloadAuthor struct {
8080
UserName string `json:"username"`
8181
}
8282

83+
type PayloadCommitter struct {
84+
Name string `json:"name"`
85+
Email string `json:"email"`
86+
UserName string `json:"username"`
87+
}
88+
8389
type PayloadUser struct {
8490
UserName string `json:"login"`
8591
ID int64 `json:"id"`
8692
AvatarUrl string `json:"avatar_url"`
8793
}
8894

8995
type PayloadCommit struct {
90-
ID string `json:"id"`
91-
Message string `json:"message"`
92-
URL string `json:"url"`
93-
Author *PayloadAuthor `json:"author"`
96+
ID string `json:"id"`
97+
Message string `json:"message"`
98+
URL string `json:"url"`
99+
Author *PayloadAuthor `json:"author"`
100+
Committer *PayloadCommitter `json:"committer"`
94101
}
95102

96103
type PayloadRepo struct {

0 commit comments

Comments
 (0)