-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Severity 3 - Minor
-
2
-
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
- Go to Repository Settings
- Select Branching Model under Workflow
- Go to Development or Production branch and select Use specific branch.
- 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" } }'
- is related to
-
BCLOUD-20410 Searching for a branch on Create Branch or on Setting the Main branch or update pull request does not pull best/exact matches first
-
- Closed
-