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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,216 views 26 12
Join discussion

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