1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-17 12:55:27 +01:00
gitea/services/pull
Giteabot 76c539cd57
Fix bug to check whether user can update pull request branch or rebase branch (#36465) (#36838)
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.

Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-08 03:23:54 +00:00
..
check_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
check.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
comment_test.go Fix force push time-line commit comments of pull request (#36653) (#36717) 2026-02-25 11:54:30 -08:00
comment.go Fix force push time-line commit comments of pull request (#36653) (#36717) 2026-02-25 11:54:30 -08:00
commit_status_test.go Fix required contexts and commit status matching bug (#34815) 2025-06-22 23:31:46 +00:00
commit_status.go Replace gobwas/glob package (#35478) 2025-09-13 18:01:00 +00:00
compare.go Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 2025-09-01 18:47:04 +00:00
edits.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
lfs.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
merge_ff_only.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
merge_merge.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
merge_prepare.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
merge_rebase.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
merge_squash.go Allow empty commit when merging pull request with squash style (#35989) (#36003) 2025-11-22 09:17:28 -08:00
merge_test.go Always use an empty line to separate the commit message and trailer (#34512) 2025-06-02 06:29:16 +00:00
merge.go Fix various permission & login related bugs (#36002) (#36004) 2025-11-22 12:33:48 +00:00
patch_unmerged.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
patch.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
protected_branch.go Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 -07:00
pull_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull.go Fix bug when compare in the pull request (#36363) (#36372) 2026-01-15 01:58:42 +00:00
review_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
review.go Fix Actions pull_request.paths being triggered incorrectly by rebase (#36045) (#36054) 2025-11-29 05:45:30 +00:00
reviewer_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
reviewer.go Fix team permissions (#34827) 2025-06-24 21:24:09 +08:00
temp_repo.go Fix creating pull request failure when the target branch name is the same as some tag (#35552) (#35582) 2025-10-06 06:10:52 +02:00
update_rebase.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
update_test.go Fix bug to check whether user can update pull request branch or rebase branch (#36465) (#36838) 2026-03-08 03:23:54 +00:00
update.go Fix bug to check whether user can update pull request branch or rebase branch (#36465) (#36838) 2026-03-08 03:23:54 +00:00