Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,551
Community Members
 
Community Events
184
Community Groups

How to disable default branch being the default target branch in a pull request

We operate in an environment where there are a lot of branches, when I try to create a new pull request, in my case by default the 'master' branch becomes the target; This is not the target branch I'm looking for 99.9% of the time. Also, this tries to create a diff of commits being populated to the description section which I have to clean up too. 

 

Is there a way around this to make sure that the master branch is not preloaded in each and every new PR I try to raise?

2 comments

Esther Strom
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 26, 2021

The default branch is set at the repo level; if you're a repo admin you can change it. Go to Repo Settings -> Branching Model:

2021-05-26 14_48_07-phconnectchicago _ atlassianscripts — Bitbucket - Vivaldi.png

You can  also set the main branch ( the one which you want to merge every time a PR is raised) by going under Repository Details and select Advanced Section. Choose Main Branch dropdown.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events