Restrict branch creation #21274
Labels
type/feature
Completely new functionality. Can only be merged if feature freeze is not active.
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
I had the same question that someone asked for GitHub here:
The idea is that developers work in their own repositories and merge into the main repository and branch through pull requests. Without the option of accidentally or willingly creating new branches in the main repository.
The answer given is that as of May 2022 GitHub has a branch protection setting named Restrict pushes that create matching branches. Adding a rule
*
will prevent the creation of any new branch.It would be awesome if Gitea could support the same.
Screenshots
The text was updated successfully, but these errors were encountered: