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,301,209
Community Members
 
Community Events
165
Community Groups

Change author to merge commit to person who merged

I have been struggling a bit with merging PR here. In GitHub when you are about to merge a PR, you can choose which email Id you want as author of merge commit but in Bitbucket the person who raised the PR is the default author of merge commit. 

Is there a way to change the default author of merge commit to the person who merged the PR instead of who raised it?

1 answer

0 votes

Hi, @Lokesh! Welcome to the community! 

Indeed, the author of the merge commit will be the user who created the Pull Request, as this person is considered the author of the work that is being merged on the PR.

So, for this reason, when the PR is merged, that same user who authored the work will be shown as the Author. 

However, we understand that it’s important to see who merged the PR, so we have added in Bitbucket UI who the author of the work is and, separately, who merged the PR, as you can see here: 

Screen Shot 2021-09-23 at 11.58.56 AM.png

So Closed by indicates who actually merged the changes. 

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

Kind regards,
Caroline

Hi, @Caroline R !

I know we can see the person who closed the PR but for my use-case I need to have the commit by the name of person who closed it. We use 3rd party plugins and for those plugins we only want to give access to reviewer and not to every team member. 

Is this configuration even in consideration?

Hi Lokesh,

This is not possible to configure at the moment and it's not something we have under consideration.

However, I can create a feature request for our development team to consider, and I'd like to ask for some more info on your use case to better understand why this is needed.

You mention 3rd party plugins and reviewers, and I'm not sure how this related to the author of the merge commit.

Could you please explain how these are related?
And also what would be the benefit of having the user that does the PR merge as the commit author?

Kind regards,
Theodora

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,265 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