Skip to content

Commit cedbd36

Browse files
authored
Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186)
Closes #12185
1 parent dbd5e4b commit cedbd36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/commits.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func toCommit(ctx *context.APIContext, repo *models.Repository, commit *git.Comm
298298
},
299299
Date: commit.Committer.When.Format(time.RFC3339),
300300
},
301-
Message: commit.Summary(),
301+
Message: commit.Message(),
302302
Tree: &api.CommitMeta{
303303
URL: repo.APIURL() + "/git/trees/" + commit.ID.String(),
304304
SHA: commit.ID.String(),

0 commit comments

Comments
 (0)