Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

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

Default Pull Request Title Behavior

Christoph Ender
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!
January 28, 2025

Hello,

Bitbucket has an (for me) unwanted behaviour: When creating a pull request it checks how many commits were made. If only one it takes the commit message. When several commits it generates the name from the branch name.

Documentation 

The situation: The branches were created from JIRA tasks and contain the task number. An example would be "Bugfix/ABC-123 fix bug with button".  In git the log of the main branch could be:

 

"Bugfix/ABC-199 fix bug with colors"
"Feature/ABC-156 buttons with colors"
"Feature/ABC-120 more buttons"
"Bugfix/ABC-123 fix bug with button"

 

Ok, nice. So, here is the same git log if there are pull requests with only one commit in between:

 

"Bugfix/ABC-199 fix bug with colors"
"Feature/ABC-156 buttons with colors"
"update"
"Feature/ABC-120 more buttons"
"got shit done"
"Bugfix/ABC-123 fix bug with button"

 

It not only looks unpleasant, one cannot see the task number anymore. Annoying to follow the progress, set git tags and manage the release branches.
I know you can rename Pull Requests before merging, but nobody does. How can I prevent Bitbucket to use a commit message for generating the name for the Pull Request?

 

Thanks,

Chris

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 29, 2025

@Christoph Ender I think there is no built-in option to configure this.

What you could try is using ScriptRunner. It allows to run little scripts that work with pull requests (e.g. create one). Hopefully, it helps to initialize the PR title field to a blank string.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events