Custom Commit message

Siva Abbannagari July 11, 2024

I wanted to enforce the following format in the commit message can yopu pleaes help on how to do it

 

JIRA: PROJ-123123

Verison: 1.1.2

Also  Check the status of JIRA  it should be in progress.

 

should be triggered on push or merge

 

decline the push or commit if

PROJ-123123  is not in progress and if its a child ticket parent ticket should alos be in progress

3 answers

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2024

@Siva Abbannagari The Better Commit Policy app does exactly what you look for on the Data Center platform for many years, and we are already working on its Cloud version.

All the features you mention (and more) will be supported on Cloud!

Do you want to get access to this before the public release?

0 votes
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.
July 11, 2024

Hi @Siva Abbannagari ,

We provide Flowie, a Bitbucket cloud app for automating workflow that supports enforcing a commit policy, allowing you to enforce the format of the message using a regex, among other things. Currently, it doesn't check against JIRA/status, but we are going to add a rule for that soon!

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2024

You would to create pre-receive hooks in order to enforce the commit message format, or there are apps in the Marketplace that can enforce the format and check the status of the associated Jira issue. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events