- changed status to closed
Autofill title of a PR always with branch name when # commits = 1
Issue #14264
closed
When a branche contains one commit and a PR is made. Then the title is autofilled with the comments of this commit, instead of the title of the branche.
For example:
Branch with name "UTANG-74-get-cart-into-systemX" and commit "blalalalla" While creating a PR "blalabal" will autoset as title instead of "UTANG-74-get-cart-into-systemX"
I expect "UTANG-74-get-cart-into-systemX" is set a title for the PR.
When there are >1 commits then the title is set to "UTANG-74-get-cart-into-systemX"
Comments (2)
-
-
Hi Alastair,
A normal scrum flow is that you create a branch based on a ticket. So the branch name will automatically get het name of the ticket: "UTANG-74-get-cart-into-systemX" Maybe this helps you create a view how most companies work.
- Log in to comment
Hi Tom,
This is intentional behavior. When a pull request has a single commit, we use the first line of the commit message as the PR title and insert other lines into the PR description. This approach takes the stance that the commit info is probably going to return a better summary than the branch name.
In the case of a PR with multiple commits, we default to the branch name because there's no way to identify a single commit as the summary. It would be better, in that case, to insert the linked issue title (which the branch name is a proxy for), but we don't have that capability at the moment.
Hope that helps explain. Thanks for the feedback.
Alastair
Bitbucket PM