Which(if any) markup is accepted in commit messages?

I'd like to add some "markup" to my commits on bitbucket(e.g. bullet-lists and in-line code like ``SomeClass``).

Is it possible to do that? And if yes, which markup can be used? I tried to look at bitbucket 101 and related documentation but this is not mentioned(or I couldn't find where it is explained).

I tried using the same markup of the issue-tracker but it does not work, the commit message is rendered literally.

4 answers

1 accepted

I don't think that this is available yet, as Mary mentioned only makrups to link issues, and trigger actions on JIRA tickets are available for now, however there's a similar feature request that you can vote for:

https://bitbucket.org/site/master/issue/2444/support-restructuredtext-and-perhaps-more

Hope it helps.

Yes, you can use Bitbucket markdown in your commits mesasages. See this here:

https://confluence.atlassian.com/display/BITBUCKET/Can+I+use+markup+in+commit+messages

I've already tried and it does not work. For example, if I have a commit message like:

"Fixed this done that, **but** test X is still failing"

The "but" will not be shown in bold on bitbucket, you will simply see the literal "**but**".

Yes, you can use Bitbucket markdown in your commits mesasages. See this here:

https://confluence.atlassian.com/display/BITBUCKET/Can+I+use+markup+in+commit+messages

You can only use the Bitbucket markdown; regular standard markdown doesn't work. So, you can created a commit messsage like this:

I fixed issue #345 in this set of code.

The issue #345 will be linked in the code. You can only refer to objects within the repo you are committing to. So, for the dvcsproject repo, you can refer to issues, other pull requests, and other commits.

You can mention other Bitbucket users.

So, in order words: no you cannot use any markup but only link to issue and that other things.

Anyway I find strange that the comments on a commit can use bold/bullet lists etc. while the commit itself is just rendered as plain text.

Correct, you can only use the Bitbucket markdown. The issue Razaq points to is resolved. You should create another one outlining what kind of enhancement you would like to see:

https://bitbucket.org/site/master/issues

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

2,026 views 1 5
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