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?
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.)
I have the same problemon Bitbucket Cloud. How can we limit the minimum required commit message length on Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.