How to change the target branch of a submitted pull request ?

cansat-asgard
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 25, 2020

When a pull request is received with Master as the destination branch, and there are conflicts, I'd like to pull in a temporary branch, where I can fix de conflicts before merging with Master.

How can I do that in Bitbucket ? I can't find a way to change the destination branch.

Thanks,

Alain.

2 answers

1 accepted

8 votes
Answer accepted
lee
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!
July 2, 2024

Other answer is incorrect due to recent UI changes.

To change the PR target branch, click directly on the target branch name in the top left area of the screen.

A drop down menu will appear, allowing you to select another branch in the repo.

 

 

PR branch.png

4 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2020

Go to the pull request and click the ellipsis button and select Edit. From here you can change the target branch for the pr.

Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2020

As Mikael has said, creating and editing pull requests in Bitbucket Cloud use the same form. This allows you to edit the destination branch.

https://confluence.atlassian.com/bitbucket/create-a-pull-request-945541466.html

Rares Saftoiu
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!
April 26, 2022

Do you know if there's a way to bulk retarget a list of PRs?

Like Brendan Graf likes this
Greg Toombs
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!
September 19, 2024

Due to recent UI changes this answer is now wrong.

ccaldwell
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!
September 20, 2024

How is this done now since the UI change

lee
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!
September 23, 2024

Hi Greg, see the other answer I posted.  You just click directly on the target.

Like Greg Toombs likes this
Erik Toft
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!
October 8, 2024

I'm using the free version. There is no dropdown next to the branch name...
image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events