-
Type:
Suggestion
-
Resolution: Fixed
-
Component/s: Pull Request - Merge / Checks
-
None
Issue Summary
While merging, you should not be allowed to delete source branch if there are still other open pull requests
Steps to Reproduce
- Customer was merging a pull request and by default they have Close source branch ticked which normally would delete the branch after merging, which is great. However, this branch actually still has other open pull request targetting a different destination branch.
- This has now has broken Pipelines as the branch no longer exists.
Expected Results
Bitbucket should catch this situation and disable the "Close source branch" option when there are multiple PR from the same source branch.
Actual Results
It does not, the branch is then deleted causing issues.
...
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available