Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14761

Branch permissions with ? wildcard don't work properly

    XMLWordPrintable

Details

    Description

      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

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            39c9d5b2a107 bmatthew123
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: