浏览代码

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

Closes #12185

Co-authored-by: Kristian Antonsen <kristian@derfor.dk>
tags/v1.12.2
techknowlogick 3 年前
父节点
当前提交
c3c246cffc
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      routers/api/v1/repo/commits.go

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

正在加载...
取消
保存