Branch permissions with ? wildcard don't work properly

XMLWordPrintable

      I have branches on a git repository that I would like to lock down to only allow pull requests after at least one approval. The branches are based on our versioning scheme (specifically the branch names are 11.4, 11.5, 11.6, and 11.7). In order to not have to add new rules for every version I set the branch permissions pattern to 11.? to match both cases (recognizing that higher than 11.9 will not work since ? only matches a single character). I apply the permissions as shown in the screenshot, but my user (an admin to the repository) is still able to create a pull request and merge it without any approvals as shown. Using 11.* works perfectly fine, but catches additional branches we don't want it to lock down. It seems that the ? wildcard character doesn't work as the documentation describes for branch permissions. https://confluence.atlassian.com/bitbucketserver/branch-permission-patterns-776639814.html

        1. BadPR.PNG
          12 kB
          bmatthew123
        2. PermissionsWithWildcard.PNG
          26 kB
          bmatthew123

            Assignee:
            Unassigned
            Reporter:
            bmatthew123
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: