The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
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.

TAGS
AUG Leaders

Atlassian Community Events