From c3c246cffcea06ca9665d41e6bd7a7d27e7e62b5 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 8 Jul 2020 11:22:07 -0400 Subject: [PATCH] Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186) (#12187) Closes #12185 Co-authored-by: Kristian Antonsen --- routers/api/v1/repo/commits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go index f9bc2efa9..5359079ef 100644 --- a/routers/api/v1/repo/commits.go +++ b/routers/api/v1/repo/commits.go @@ -296,7 +296,7 @@ func toCommit(ctx *context.APIContext, repo *models.Repository, commit *git.Comm }, Date: commit.Committer.When.Format(time.RFC3339), }, - Message: commit.Summary(), + Message: commit.Message(), Tree: &api.CommitMeta{ URL: repo.APIURL() + "/git/trees/" + commit.ID.String(), SHA: commit.ID.String(),