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

Searching for a branch on Branching Model does not pull best/exact matches first

XMLWordPrintable

      Issue Summary

      When searching for a branch on Repository Settings > Branching Model , Bitbucket only displays 50 results, which means if the result you are looking for is after the 50th result, even after using filters, you won't be able to pick it.

      Steps to Reproduce

      1. Go to Repository Settings
      2. Select Branching Model under Workflow
      3. Go to Development or Production branch and select Use specific branch.
      4. Specify branch to be setup as main branch, note 50 branches are displayed. This is not possible to setup the main branch if that is not listed in the list of 50 branches

      Expected Results

      When searching for branches on Branching Model, the specified branch should appear first.

      Actual Results

      When searching for a branch, if it is not listed in the top 50 results, the branch will not be displayed.

      Workaround

      You can update the default branch using the API.

      Reference: Update the branching model config for a repository.

      Example:

      curl --request PUT \
        --url https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/branching-model/settings \
        --user "your_username:your_app_password" \
        --header 'Content-Type: application/json' \
        --data '{
        "development": {
          "use_mainbranch": false,
          "name": "your-branch-name"
        }
      }'
      

              Unassigned Unassigned
              8d3291f57377 Marlene Harms
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: