aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc/administration.en-us.md
diff options
context:
space:
mode:
authorKemal Zebari <60799661+kemzeb@users.noreply.github.com>2025-01-15 12:51:49 -0800
committerGitHub <noreply@github.com>2025-01-15 20:51:49 +0000
commit2483a93fbc2111bac8f53a0411cbddfa4395b8a9 (patch)
tree3d02da37019d57a83961e7384b4005bafe4ffb62 /docs/content/doc/administration.en-us.md
parent4b21a6c792e1bc42ce0f824c7dd7d1426aad2d3b (diff)
downloadgitea-main.tar.gz
gitea-main.zip
Only allow admins to rename default/protected branches (#33276)HEADmain
Currently, anyone with write permissions to a repo are able to rename default or protected branches. This change follows [GitHub's](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch) design by only allowing repo/site admins to change these branches. However, it also follows are current design for protected branches and only allows admins to modify branch names == branch protection rule names. Glob-based rules cannot be renamed by anyone (as was already the case, but we now catch `ErrBranchIsProtected` which we previously did not catch, throwing a 500).
Diffstat (limited to 'docs/content/doc/administration.en-us.md')
0 files changed, 0 insertions, 0 deletions