pull request title does not contain branch name

Vivek Sharma June 8, 2023

As per atlassian documentation, point 4 says " By default, the pull request title will contain the commit message or branch name." We are using Bitbucket v8.5.1 but the Pull request title contains only commit message not the branch name. How can we alter this settings to have the branch name in pull request title ?

 

Thanks a lot

1 answer

1 accepted

1 vote
Answer accepted
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.
June 9, 2023

I think the description you linked suggests is that either the commit message or the branch name appears in the PR's default title:

  1. If there is a commit on the source branch that is not available on the target branch yet -> make commit message the PR's default title.
  2. Otherwise (if the source branch doesn't contain any additional commit when compared to the target brach) -> make the source branch name the PR's default title.

So I think, depending on a condition, it is either one or the other, but not both and it is not configurable.

Vivek Sharma June 21, 2023

Ok. Thanks for the response. For Jenkins-JIRA integration, I rely on the JIRA ID in the commit message. Usually developer puts the JIRA ID while creating feature branch(e.g., feature/ABCD-1234) however in case of commit message developers mostly does not mention the JIRA ID. In Bitbucket, when we merge the PR, the PR title becomes the commit message. Hence, I am investigating if feature branch name can be included with PR Title so that when it gets merge, it will become part of commit message and I extract the JIRA ID from commit message.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events