Skip to content

Wildcard branch protection should allow branch creation #33790

@srodionov-cbtw

Description

@srodionov-cbtw

Feature Description

Given a branch protection rule with a wildcard like "release/**" and "disabled push",
as a developer without administrator privileges, I want to be able to create a new branch called release/whatever with the branch creation UI in gitea, as long as no such branch exists.

currently I get the error:
"Gitea: Not allowed to push to protected branch release/whatever"

I want the branch protection to protect existing branches only, while beeing able to create new branches, that once created automatically get the protection.
If necessary it could also be a configurable option, if the branch protection is applied to new branches.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions