Skip to content

Enabling branch protection based on the branch patterns. #311

Open
@viks-confluent

Description

@viks-confluent

Prerequisites:

  • Is the functionality available in the GitHub UI? If so, please provide a link to information about the feature.

Yes, from github UI, I can enable branch protection rules on pattern like *-release which will apply these rules to all the branches with -release as the suffix.

Yes, this is available via github graphQL api ONLY. https://docs.github.com/en/graphql/reference/mutations#createbranchprotectionrule
https://docs.github.com/en/graphql/reference/input-objects#createbranchprotectionruleinput

  • If the functionality is not yet available in the API, it would be helpful if you
    contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
    include a link to the forum post if you create one or a copy of the response from support.

New Feature

Please describe the desired new functionality:

I want to enable branch protection rules based on a pattern. Today we can achieve this via Github UI and github graphQL apis. Adding this feature will help us to manage branch protection will less rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions