From cb66dbb48786e04763e882b715684a16992b8b72 Mon Sep 17 00:00:00 2001 From: 6543 <6543@noreply.gitea.io> Date: Tue, 6 Oct 2020 23:31:11 +0000 Subject: [PATCH] Update CommitMeta Struct (#434) Merge branch 'master' into update-CommitMeta_433 Update CommitMeta Struct Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/434 Reviewed-by: Lunny Xiao Reviewed-by: techknowlogick --- gitea/repo_commit.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitea/repo_commit.go b/gitea/repo_commit.go index e17d003..4b90b9c 100644 --- a/gitea/repo_commit.go +++ b/gitea/repo_commit.go @@ -19,8 +19,9 @@ type Identity struct { // CommitMeta contains meta information of a commit in terms of API. type CommitMeta struct { - URL string `json:"url"` - SHA string `json:"sha"` + URL string `json:"url"` + SHA string `json:"sha"` + Created time.Time `json:"created"` } // CommitUser contains information of a user in the context of a commit.