Skip to content

Conversation

@lunny
Copy link
Member

@lunny lunny commented Aug 10, 2025

The commit range in the UI follows a half-open, half-closed convention: (,]. When reviewing a range of commits, the beforeCommitID should be set to the commit immediately preceding the first selected commit. For single-commit reviews, we must identify and use the previous commit of that specific commit.

The endpoint ViewPullFilesStartingFromCommit is currently unused and can be safely removed.

Fix #35157
Replace #35184
Partially extract from #35077
Backport #35192

The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.

The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.

Fix go-gitea#35157
Replace go-gitea#35184
Partially extract from go-gitea#35077
@lunny lunny added this to the 1.24.5 milestone Aug 10, 2025
@lunny lunny added the type/bug label Aug 10, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 10, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/frontend labels Aug 10, 2025
@lunny lunny requested a review from a team August 11, 2025 04:11
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 11, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 11, 2025
@6543 6543 merged commit 04114c6 into go-gitea:release/v1.24 Aug 11, 2025
26 checks passed
@lunny lunny deleted the lunny/backport_35192 branch August 11, 2025 17:10
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Nov 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants