how do i use conditons/validations on git commits

ShrutiM January 22, 2015

hi,

    can any 1 tell me that how to use conditions/validations on git commit like no 1 can push their changes to the remote until and unless the JIRA issue key is mentioned in the commit message.

plz let me know if there are any ways .

2 answers

1 accepted

0 votes
Answer accepted
Mibex_Software
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.
January 22, 2015

Hi,

You can either write your one Stash pre-receive hook or use an existing plug-in that is already able to check if a JIRA issue key is mentioned.

Hope this helps.

Kind regards,

Michael

0 votes
Midori
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.
May 12, 2016

Commit Policy for Bitbucket implements exactly this!

Suggest an answer

Log in or Sign up to answer