aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorLucas Queiroz <me@lucasqueiroz.dev>2020-10-05 01:07:54 -0300
committerGitHub <noreply@github.com>2020-10-05 12:07:54 +0800
commit67a5573310cf23726e3c2ef4651221c6dc150075 (patch)
treeadd7af9497a8d421fedaec36f1638fb70ab3b5ad /modules/structs
parent48703c3c68ff3d948b406c422bc4f663da783d87 (diff)
downloadgitea-67a5573310cf23726e3c2ef4651221c6dc150075.tar.gz
gitea-67a5573310cf23726e3c2ef4651221c6dc150075.zip
[#13004] Add Timestamp to Tag list API (#13026)
* Add Timestamp to Tag list API * Add unit test for ToCommitMeta * Rename timestamp to created * Reformat files
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/repo_commit.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go
index 088ccdf5af..b9607b185b 100644
--- a/modules/structs/repo_commit.go
+++ b/modules/structs/repo_commit.go
@@ -20,6 +20,8 @@ type Identity struct {
type CommitMeta struct {
URL string `json:"url"`
SHA string `json:"sha"`
+ // swagger:strfmt date-time
+ Created time.Time `json:"created"`
}
// CommitUser contains information of a user in the context of a commit.