Skip to content

Fix bug to check whether user can update pull request branch or rebase branch (#36465)#36838

Merged
lunny merged 3 commits intogo-gitea:release/v1.25from
GiteaBot:backport-36465-v1.25
Mar 8, 2026
Merged

Fix bug to check whether user can update pull request branch or rebase branch (#36465)#36838
lunny merged 3 commits intogo-gitea:release/v1.25from
GiteaBot:backport-36465-v1.25

Conversation

@GiteaBot
Copy link
Collaborator

@GiteaBot GiteaBot commented Mar 5, 2026

Backport #36465 by @lunny

When checking whether a user can update a pull request branch or perform an update via rebase, a maintainer should inherit the pull request author’s permissions if Allow maintainer edits is enabled.

…e branch (go-gitea#36465)

When checking whether a user can update a pull request branch or perform
an update via rebase, a maintainer should inherit the pull request
author’s permissions if Allow maintainer edits is enabled.

---------

Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBot GiteaBot added modifies/go Pull requests that update Go code type/bug labels Mar 5, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 5, 2026
@GiteaBot GiteaBot added this to the 1.25.5 milestone Mar 5, 2026
@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 Mar 5, 2026
@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 Mar 8, 2026
@lunny lunny enabled auto-merge (squash) March 8, 2026 02:56
@lunny lunny merged commit 76c539c into go-gitea:release/v1.25 Mar 8, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants