Browse Source

Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186)

Closes #12185
tags/v1.13.0-rc1
Kristian Antonsen 3 years ago
parent
commit
cedbd3684f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      routers/api/v1/repo/commits.go

+ 1
- 1
routers/api/v1/repo/commits.go View File

@@ -298,7 +298,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(),

Loading…
Cancel
Save