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

bakuriu December 29, 2012

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

3 votes
Answer accepted
Abdulrazaq Mohammed Ali Omar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2013

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.

1 vote
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2013

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

bakuriu January 5, 2013

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**".

0 votes
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2013

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.

bakuriu January 6, 2013

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.

Like vike likes this
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2013

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

0 votes
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events