Does bitbucket support a co-author in a git commit message?


3 answers

0 votes

If Git supports it, then Bitbucket supports it... What are you trying to do? Usually a changes in Git only has one commiter. Git (and therefore Bitbucket) will track change sets levels and a push to Bitbucket (or any other remote repository) can have multiple commits in it...

See my comment below

You need special support on your web.

We encourage the use of Co-Authored-By: name <> in commit messages to indicate people who worked on a particular patch. It's a convention for recognizing multiple authors, and our projects would encourage the stats tools to observe it when collecting statistics.


As result, if you have something like that in commit message, you should insert link to this guy as second commit author (I am about the web-interface)

Yes, you can put that message into a Bitbucket commit.  It's simple text that goes in.

Yes, it goes into the commit message.


And I want to see workable links in my browser (first to Leonid Mamaev second one to Oleg Tsarev) when I open commit view in browser (I am about bitbucket web interface)

"Leonid Mamaev" on my picture is link (clickable) while "Oleg Tsarev" - just plain text

That would be an improvement request you need to make.

You'll need to explain how to implement it when

a) The co-author is NOT the committer, which is what the field is for

b) The co-author field is a random bit of text that may well not be a known user

So, you use "author" and "email" to detect commit author (I checked it, I can set author/email of my co-worker and commit would be linked to my co-worker profile).

If you see "Co-Authored-By:<TEXT>\n" in commit message, you should try to parse it to "USERNAME <EMAIL>" and than link USERNAME/EMAIL exactly as you make it for commit author/email

No need to tell me, put it in your improvement request.

How to make improvement request?

Just for the record (and another people from google) - created

Screenshot 2017-12-28 21.14.07_preview.pngDo you see?

I have only single author link - Leonid Mamaev, while I expecting to see TWO authors and BOTH should be link to bitbucket user profile

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

657 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot