You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
Yes I am able to validate there is "a" jira with a regex on a commit. What I am after is able to validate both the commit and the branch name at the same time and check they contain the same jira.
Hi,
The use-case is to prevent use from typing the wrong Jira issue into the commit message.
We typically create the branch from Jira so there is no way to get the branch name wrong and the Jira issue will also be part of the branch name.
So if we can check that the same Jira issue that is in the branch name is also in the commit message, we are sure it is good.
This exclude branch master and develop of course. This is for a bugfix/feature/hotfix/release or other custom type of branches.
Thanks
The text was updated successfully, but these errors were encountered: