Forums

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

Conventional commit switch

Priyesh
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!
April 27, 2024

Can Sourcetree add a switch to force commiters to follow conventional commit syntax.

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
May 20, 2026

You can enforce the conventional commit syntax using the Better Commit Policy app. 

It can enforce it on your local machine every time when you create a new commit. It works with any Git client, not only with Sourcetree. An example with the Git commandline client:

Local-Checks-Better-Commit-Policy-Connector-for-Bitbucket-Midori-05-20-2026_12_10_PM.png

Here is the related guide.

(Discl. this app is developed and supported by our team.)

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 14, 2026

Hi @Priyesh and welcome,

this is something that should appen on server side and not on client. A pre-hook should be applied on bitbucket so that commit will be rejected if a commit message doesn't follow a specific format.

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events