From d1020b4da5474f7533f5b11084dcfd5536cf2e71 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 9 Aug 2016 18:26:35 -0700 Subject: [PATCH] Add Timestamp to PayloadCommit --- gogs.go | 2 +- repo_hook.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gogs.go b/gogs.go index 0b19afa..c34a7ed 100644 --- a/gogs.go +++ b/gogs.go @@ -14,7 +14,7 @@ import ( ) func Version() string { - return "0.10.2" + return "0.10.3" } // Client represents a Gogs API client. diff --git a/repo_hook.go b/repo_hook.go index ec5c385..2be59e1 100644 --- a/repo_hook.go +++ b/repo_hook.go @@ -98,6 +98,7 @@ type PayloadCommit struct { URL string `json:"url"` Author *PayloadAuthor `json:"author"` Committer *PayloadCommitter `json:"committer"` + Timestamp time.Time `json:"timestamp"` } type PayloadRepo struct {