Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Require issue keys in commit messages

toclark
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2019

Hi,

Running on Atlassian Bitbucket v5.12.0, does anyone know if "Require issue keys in commit messages" is supported in this version.  I know it is available in Bitbucket Cloud (https://bitbucket.org/blog/document-changes-required-issue-keys-bitbucket-cloud), but wondering if it is available for the non cloud version.

2 answers

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
September 5, 2019

Hi @toclark

Welcome to Atlassian Community.

Bitbucket Server does not have the same option to require issue keys in commit comments out-of-the-box. You would have to get an app (like Jira hooks for Bitbucket or Better commit policy for Bitbucket) or write your own in order to get that functionality.  

toclark
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2019

Thanks Mikael

Julius Davies [bit-booster.com]
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.
September 6, 2019

Great reply from @Mikael Sandberg about some paid* apps for this problem. There are also a couple free apps for this problem:

1.  Yet Another Commit Checker (a.k.a. "YACC").

2.  Control Freak

 

Here's a screenshot from Control Freak:

cf.png

 

* - Technically "Better Commit Policy" is free, but it depends on the paid "Better Commit Policy for Jira" app.

* - Control Freak encourages users to co-install our paid PR-Booster for Bitbucket plugin, but the "Require issue keys in commit messages" feature of Control Freak is fully functional without this optional dependency.

 

Note:  Control Freak is not yet officially Data Center certified, but we expect that to be in place by September 20th, 2019.  We already passed the technical review phase of our Data Center certification and we're waiting for the final Marketplace review.

Like • Mikael Sandberg likes this
1 vote
Levente Szabo _Midori_
Atlassian Partner
September 5, 2019 edited

Hi @toclark ,

As Mikael mentioned, Better Commit Policy for Bitbucket is designed to do that and more, like verify committer's identity, require a message length, verify if the commit is sent to the right branch, and you can use also the combination of multiple conditions.

It sports an advanced feature called local commit verification, that allows developers to save time and verify commits right on their computers at commit time, so they always only push compliant commits to the server. This is a unique productivity booster feature that is not offered by any other solution.

Please note that this is a free connector app, that relies on Better Commit Policy for Jira, which is a paid and supported app. Get in touch with our team at Midori if you have further questions about the apps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events