Skip to content

Commit 6e474d2

Browse files
author
Raphaël Benitte
committed
Merge pull request #13 from 9uuso/master
change hCommit.Timestamp to time.Time type
2 parents f3af95a + 5cbd904 commit 6e474d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hook_payload.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ type hRepository struct {
3838
}
3939

4040
type hCommit struct {
41-
Id string `json:"id,omitempty"`
42-
Message string `json:"message,omitempty"`
43-
Timestamp string `json:"timestamp,omitempty"`
44-
URL string `json:"url,omitempty"`
45-
Author *Person `json:"author,omitempty"`
41+
Id string `json:"id,omitempty"`
42+
Message string `json:"message,omitempty"`
43+
Timestamp time.Time `json:"timestamp,omitempty"`
44+
URL string `json:"url,omitempty"`
45+
Author *Person `json:"author,omitempty"`
4646
}
4747

4848
type HookPayload struct {

0 commit comments

Comments
 (0)