Skip to content

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

Merged
lunny merged 3 commits into
go-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 into
go-gitea:release/v1.25from
GiteaBot:backport-36465-v1.25

Conversation

@GiteaBot

@GiteaBot GiteaBot commented Mar 5, 2026

Copy link
Copy Markdown
Collaborator

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 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
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 6, 2026
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. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants