Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-19477

Allow Regular Expressions in Branch Permission Patterns in Bitbucket

XMLWordPrintable

    • 3
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Currently, Bitbucket's branch permission settings do not support regular expressions, limiting the flexibility of branch protection rules. This limitation necessitates adding multiple branch permissions for each pattern manually, which can be cumbersome and error-prone, especially for larger repositories with diverse branch naming conventions.

      Use Case:

      For instance, if an administrator wants to prevent the deletion of branches starting with any number, they currently need to add separate permissions for each possible starting digit (e.g., 1*, 2*, 3*, etc.). This is inefficient and impractical for comprehensive branch management.

      By allowing regex, administrators could add a single rule to cover a wide range of branch naming conventions. For example, a regex pattern like [0-9].* could be used to prevent deletion of any branch starting with a digit.

              Unassigned Unassigned
              daedeadfd2c9 Nikhil Kapoor
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: