-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
3
-
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.