Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,573
Community Members
 
Community Events
165
Community Groups

Choose name format for BB Pull Request merges

Our corporate users are instructed to use: 

 

firstname.lastname 

 

as their author names for commits.  These name seem to be accepted by BB cloud and are not mapped to anything else.  The same users usually set up their BB Cloud Account with a human friendly name in 

 

Firstname Lastname 

 

format.  When we do PR merges, we end up with a mash of commit authors in both firstname.lastname and Firstname Lastname format.  We want to continue to follow our corporate standard of firstname.lastname as author in commit message but there seems to be no way to do so.  

Can you help?

1 answer

0 votes
Caroline R Atlassian Team Aug 13, 2021

Hi, @Jay Guidos

Thank you for reaching out to Atlassian Community!

When you say that you "end up with a mash of commit authors in both firstname.lastname and Firstname Lastname format", are you referring to the list of commits on Bitbucket UI or on Git? 

Thank you! 

Kind regards,
Caroline 

Hi Caroline, 

 

I am referring to the list of commits in GIT. 

In our GIT commits we are carefully using the firstname.lastname mapped to each BB Cloud user's account, so commit views inside the BB GUI are always shown correctly, but in Firstname Lastname format.  

The trouble appears on GIT searches that do not involve the BB GUI.  Because BB commits with an author name of Firstname Lastname and our other GIT toolset does not have an equivalent mapping capability then our by-author searches are complicated by having to provide alternate name match queries.

If we could specify the desired commit author to be used when BB does commits on the user's behave it would simplify things considerably. I realize there is potential spoofing risk here, especially if I do something like: 

  • My Account Name: Jay Guidos
  • My Commit Author: john.smith

But that kind of thing is easily dealt with via simple templating or audit trails, if you cared.

Caroline R Atlassian Team Aug 17, 2021

Hi, @Jay Guidos,

Thanks for the additional details. Just to give you some context around the information we see on Git, the “author" field will show you the information that the user set on the .gitconfig file. However, when you have a Pull request on Bitbucket and you merge your code there, Git will show you the "Full name" information of the user who merged it. The full name field is set on the Atlassian account level.

With that said, as you confirmed you want to continue to follow your corporate standard of firstname.lastname as the author in the commit message, in order to keep the same name in both scenarios, you can ask the users to change their "Full name” on their Atlassian account by following the next steps:

I hope this helps, but do let me know if you have any questions. 

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,158 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you