Add Timestamp to PayloadCommit
This commit is contained in:
parent
9cf52efdff
commit
d1020b4da5
2 changed files with 2 additions and 1 deletions
2
gogs.go
2
gogs.go
|
@ -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.
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue