Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Change author to merge commit to person who merged

Lokesh September 21, 2021

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
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2021

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

Lokesh May 24, 2022

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?

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2022

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

Go 2 Evolution November 26, 2022

When I look at the git history, I want to know who wrote the code. So when I change something or when I have questions, why this has been solved like this, I want to contact the actual author.

GitLab does this right in my opinion, but Bitbucket chooses this strange way which completely confuses me and my colleagues!

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 29, 2022

Hi @Go 2 Evolution and @Lokesh,

I went ahead and created a feature request about this in our issue tracker:

https://jira.atlassian.com/browse/BCLOUD-22294

Please make sure to add your vote to that request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html and any updates will be posted in the feature request.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events