Forums

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

Can I set rules for commit message length on BitBucket Cloud?

Ergin İpekçi October 9, 2019

Hi, I researched set rules for commit message length. Let me explain,  commit message will approve minimum 32 characters. If commit message length is less than 32 characters, Bitbucket Cloud doesn't approve the commit message. Are there any ways to do this on BitBucket Cloud?

 

 

 

3 answers

1 vote
Levente Szabo _Midori_
Atlassian Partner
June 2, 2025

@Ergin İpekçi

@Özgür Kaya 

The solution has just shipped in the form of Better Commit Policy for Jira Cloud, together with its free Bitbucket integration, Better Commit Policy Connector for Bitbucket Cloud!

You can define commit message rules using simple YAML configuration files, including rules like:

  • Minimum and maximum commit message length

  • Specific patterns or required contents (e.g. Jira work item keys)

  • Validation for pull request title, description, authorship, and more

Once configured, the Bitbucket Cloud connector enforces these policies through a merge check. If a commit message is too short (like under 32 characters), the pull request fails the check and can’t be merged until it's fixed.

This ensures that all code merged into your main branches meets your team’s standards.

(I'm part of the Midori team developing the Better Commit Policy apps.)

0 votes
Özgür Kaya
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!
November 11, 2019

I have the same problemon Bitbucket Cloud. How can we limit the minimum required commit message length on Cloud?

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 21, 2019

Hi Ergin, 

Thanks for reaching out!

What exactly are you trying to accomplish? Are you trying to set restrictions on the commit messages your partners can commit to your repositories? Or are you looking for something else?

If you'd like to make a suggestion you can also check our portal and see if someone else already proposed it. In that case, don't forget to add your vote to show your interest. 

Let us know what you need, we're happy to help.

Kind regards,

Ana

Ergin İpekçi November 10, 2019

Hi Ana,

-Are you trying to set restrictions on the commit messages your partners can commit to your repositories? 

Exactly, every team member has to follow the commit message length rule. Can I put restrictions on the commit messages on "BitBucket Cloud". The commit message length must be more than 32 characters.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events