Main branch keep changing to a feature branch once a pull request is merged to the feature branch

JJung
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2025

I'm running into an issue where my main branch is keep changing to a feature branch once a Pull Request is merged. Can someone please help me? I've tried even creating a whole new setup of repositories to test, but the same issue persists there as well. My merge strategy is "Merge commit".

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 2, 2025

Hi @JJung 

When you perform the merge - are you ticking the box to close the source branch? If you are, this would explain why the main branch switches (as the source branch doesn't exist anymore).

Otherwise, we'll need to gain access to your repository to get a better idea as to what's happening here:

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events