Forums

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

Is there a cloud verified plugin that checks commit messages?

Serge Asmar April 16, 2024

Is there a cloud verified plugin that checks commit messages for Jira ticket IDs and prevents a commit in case this jira ID ticket is not present?

3 answers

1 vote
Aron Gombas _Midori_
Community Champion
April 17, 2024

Update on 4 Jun 2025

After months of hard work and close beta testing, we released Better Commit Policy Connector for Bitbucket Cloud on Atlassian Marketplace last week!

It can check commit messages for:

  • format (e.g. where to enter the work item key? uppercase/lowercase/mixed case?)
  • length (e.g. so that your users must enter at least N characters in addition to the work item)
  • required work items keys (you can configure a JQL query to precisely filter which work items are accepted, how many, etc.)

🔥 Get started here

This is how a pull request and the commits are checked directly on the pull request details screen:

bitbucket-cloud-rejected-pull-request.png

---

Original response

@Serge Asmar We are already working on the Cloud version of the Better Commit Policy app (a popular solution to implement commit policies on Bitbucket DC)!

Although Bitbucket Cloud doesn't support server side hooks, we will implement an even better approach, using local verification. It can capture missing issue keys when creating the commit, i.e. sooner than the actual push. And, you can fix that right away (the earlier the problem detected the easier to fix it):

git-console-in-action.gif

Please send an email to aron.gombas@midori-global.com so that we can add you to the Early Access program when it starts.

1 vote
Saxea _Flowie_
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.
April 16, 2024

Hi @Serge Asmar

I'm afraid not. In fact, as of now, none of th Bitbucket cloud apps are Cloud Fortified:

bitbucket-apps.png

Some apps are Cloud Security participant though.

We do offer a plugin for commit policy with Flowie and here is our security policy.

Also, note that due to the lack of support for server side hooks (BCLOUD-10471) on Bitbucket cloud, the plugin only won't prevent the commit from being created. It does however create a check preventing a merge.

Hope that helps!

Serge Asmar April 16, 2024

alright thank you for the reply!

Like Sabine Mayer likes this
0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2024

Hi @Serge Asmar,

There is a built-in feature in Bitbucket Cloud to require issue keys in commit messages. If you are an administrator of the repo, you can find it by navigating to Repository settings > Links. On that page, you can enable this option.

Please keep in mind that this option doesn't check for issue validity before linking. We have a feature request to implement this here https://jira.atlassian.com/browse/BCLOUD-20644.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events