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.
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
@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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.