summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2019-03-22 09:38:49 -0600
committertechknowlogick <matti@mdranta.net>2019-03-22 11:38:49 -0400
commitecce28f9dfaaa78a8471053ca40716a1e426aa6f (patch)
tree0fa497785e4116bd4086d63c666f223883a49253 /routers
parent03e4db40cc09d6c211b3026f743c38c227e4fc8e (diff)
downloadgitea-ecce28f9dfaaa78a8471053ca40716a1e426aa6f.tar.gz
gitea-ecce28f9dfaaa78a8471053ca40716a1e426aa6f.zip
Updates SDK dep (#6406)
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/commits.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index a4cf5037d7..3596e88015 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -97,14 +97,18 @@ func GetSingleCommit(ctx *context.APIContext) {
RepoCommit: &api.RepoCommit{
URL: setting.AppURL + ctx.Link[1:],
Author: &api.CommitUser{
- Name: commit.Author.Name,
- Email: commit.Author.Email,
- Date: commit.Author.When.Format(time.RFC3339),
+ Identity: api.Identity{
+ Name: commit.Author.Name,
+ Email: commit.Author.Email,
+ },
+ Date: commit.Author.When.Format(time.RFC3339),
},
Committer: &api.CommitUser{
- Name: commit.Committer.Name,
- Email: commit.Committer.Email,
- Date: commit.Committer.When.Format(time.RFC3339),
+ Identity: api.Identity{
+ Name: commit.Committer.Name,
+ Email: commit.Committer.Email,
+ },
+ Date: commit.Committer.When.Format(time.RFC3339),
},
Message: commit.Summary(),
Tree: &api.CommitMeta{