Hey Guys,
I have tried to implement pre-hook by Scriptrunner in bitbucket - "Require commits to be associated with a JIRA issue" .
Goal is to achieve that every commit before pushing will contain the JIRA ID
Problem - In the name of branches I use related JIRA Ticket ID, by the conditon in this defined pre-hook"The issue can either be mentioned in the commit message, or be present in the branch name"
I tried using conditions but so far I wasn't able to fix this, could anyone help me in this please?