We need to enforce developer to have Jira ticket in commit message. Current build in solution checks that either commit message OR feature branch has Jira. We need to check always commit message
Regardless what branch we push from local to remote – we want to check each commit message and verify that Jira is there
I have tried to use build in option “Require commits to be associated with a JIRA issue”
But this option check that Feature branch OR commit message has Jira. We need to check commit message always. I.e. - I don’t care what is the name of the branch but I want to know that commit has Jira.
We have tried to use other option called “Push check”. But it doesn’t work as well. Because when I commit with commit message having Jira (in proper state) it simply rejects it.