Regression: Gitea commits API again returns commit summaries, not full messages #5709

Closed
opened 2025-11-02 06:33:42 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kbadk on GitHub (Jul 8, 2020).

In April 2019, this same issue was brought up.

It was deemed a bug, added to the 1.8.0 milestone, implemented the same day, and made it into v1.8.

release/v1.8:
11f6ed4f83/routers/api/v1/repo/commits.go (L109)

Where it lived happily (through release/v1.9) until this commit: API method to list all commits of a repository (#6408).

In v1.10 and v1.11 (and the current HEAD of master), however, we're back to commit.Summary().

release/v1.10:
4d876ab1c8/routers/api/v1/repo/commits.go (L277)

I don't see an explanation for this, so I'm assuming it's a regression.

Originally created by @kbadk on GitHub (Jul 8, 2020). [In April 2019, this same issue was brought up](https://github.com/go-gitea/gitea/issues/6589). It was deemed a bug, added to the 1.8.0 milestone, [implemented the same day](https://github.com/go-gitea/gitea/pull/6591), and made it into v1.8. **[release/v1.8](https://github.com/go-gitea/gitea/blob/release/v1.8/routers/api/v1/repo/commits.go#L109):** https://github.com/go-gitea/gitea/blob/11f6ed4f8349119c8f9a5d57c43a0312365883d1/routers/api/v1/repo/commits.go#L109 Where it lived happily (through [release/v1.9](https://github.com/go-gitea/gitea/blob/release/v1.9/routers/api/v1/repo/commits.go#L113)) until this commit: [API method to list all commits of a repository (#6408)](https://github.com/go-gitea/gitea/commit/042089fbaf8a818042405a75bee08dea8db347c0#diff-2e0a7b644cf31e1c8ef7d76b444fe3aaL112). In v1.10 and v1.11 (and the current [HEAD of master](https://github.com/go-gitea/gitea/blob/dbd5e4bb8d0f9d35e19549ecf0c9d8a1d5df167f/routers/api/v1/repo/commits.go#L301)), however, we're back to `commit.Summary()`. **[release/v1.10](https://github.com/go-gitea/gitea/blob/release/v1.8/routers/api/v1/repo/commits.go#L277):** https://github.com/go-gitea/gitea/blob/4d876ab1c8f2bca3bdbfa9091821267ade938bf3/routers/api/v1/repo/commits.go#L277 I don't see an explanation for this, so I'm assuming it's a regression.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5709