From ecce28f9dfaaa78a8471053ca40716a1e426aa6f Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Fri, 22 Mar 2019 09:38:49 -0600 Subject: Updates SDK dep (#6406) --- routers/api/v1/repo/commits.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'routers/api/v1/repo/commits.go') 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{ -- cgit v1.2.3