Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hello Team,

  • A Jira issue is assigned to XYZ (= developer)
  • XYZ does the required development on a specific Bitbucket branch
  • After finishing the development, XYZ creates a pull request on Bitbucket
  • The reviewers (= most of the time ABC or PQR) review the code changes and provided some feedback
  • After approving the pull request the reviewer merges the pull request
  • The BitBucket uses the name of the reviewer as the author of the commit.

This last step is where my issue is situated. I would like to see that the author of the commit remains 'XYZ' as he/she did the code changes and not the name of the person that did the merge.

Anybody has come across this or any suggestions which will help me to get this done using any add-on or scripting would be appreciated.

 

Thanks,

1 answer

Hi @Yogesh Mude ,

You are probably using 'Merge commit --no-ff' as your merge strategy. Then the person who is merging will always create a merge commit and therefore is the author of the commit. If you don't want that you can either let the person who created the pull request merge the pull request. Or you can another merge strategy (e.g. fast-forward). 

Note that the first solution a process change (the developer stays responsible for getting his /her changes into the main branch) and the second is a change in the workflow, the developer needs to date with the main branch in order to fast-forward).

 

Rudy

Hi Rudy,

Thanks for the suggestions.

If possible, can you please elaborate a little bit more on fast-forward..the developer needs to date with the main branch in order to fast-forward).

Thanks,

Yogesh

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

218 views 2 5
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