Add Timestamp to PayloadCommit

This commit is contained in:
Unknwon 2016-08-09 18:26:35 -07:00
parent 9cf52efdff
commit d1020b4da5
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ import (
) )
func Version() string { func Version() string {
return "0.10.2" return "0.10.3"
} }
// Client represents a Gogs API client. // Client represents a Gogs API client.

View file

@ -98,6 +98,7 @@ type PayloadCommit struct {
URL string `json:"url"` URL string `json:"url"`
Author *PayloadAuthor `json:"author"` Author *PayloadAuthor `json:"author"`
Committer *PayloadCommitter `json:"committer"` Committer *PayloadCommitter `json:"committer"`
Timestamp time.Time `json:"timestamp"`
} }
type PayloadRepo struct { type PayloadRepo struct {