Skip to content

Fix bug when review pull request commits #35192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 3, 2025

Conversation

lunny
Copy link
Member

@lunny lunny commented Aug 1, 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

@lunny lunny added type/bug backport/v1.24 This PR should be backported to Gitea 1.24 labels Aug 1, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 1, 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 1, 2025
@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 1, 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 1, 2025
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 2, 2025
@wxiaoguang wxiaoguang removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 2, 2025
@wxiaoguang wxiaoguang marked this pull request as draft August 2, 2025 06:59
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe no need to backport

@lunny lunny marked this pull request as ready for review August 3, 2025 15:39
@lunny lunny removed the backport/v1.24 This PR should be backported to Gitea 1.24 label Aug 3, 2025
@lunny lunny merged commit be2a6b4 into go-gitea:main Aug 3, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.25.0 milestone Aug 3, 2025
@lunny lunny deleted the lunny/fix_pull-commit branch August 3, 2025 17:23
zjjhot added a commit to zjjhot/gitea that referenced this pull request Aug 4, 2025
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Fix bug when review pull request commits (go-gitea#35192)
  [skip ci] Updated translations via Crowdin
  [skip ci] Updated translations via Crowdin
  Fixed typo in oauth2_full_name_claim_name string (go-gitea#35199)
  Fixed typo in locale_en-US.ini (go-gitea#35196)
@lunny lunny added the backport/v1.24 This PR should be backported to Gitea 1.24 label Aug 9, 2025
@GiteaBot
Copy link
Collaborator

I was unable to create a backport for 1.24. @lunny, please send one manually. 🍵

go run ./contrib/backport 35192
...  // fix git conflicts if any
go run ./contrib/backport --continue

@GiteaBot GiteaBot added the backport/manual No power to the bots! Create your backport yourself! label Aug 10, 2025
lunny added a commit to lunny/gitea that referenced this pull request 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 go-gitea#35157
Replace go-gitea#35184
Partially extract from go-gitea#35077
@lunny lunny added the backport/done All backports for this PR have been created label Aug 10, 2025
6543 pushed a commit that referenced this pull request Aug 11, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.24 This PR should be backported to Gitea 1.24 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.

File tree in PR is not correct when a special commit is selected
5 participants