Hi All,
With pre repositiory hook of stash plugin I able to achieve the commit message validation.
In commit messaage I want to include the ticket number like this "PROJ#123"
$git commit -m "123" text.txt (Incorrect)
$git commit -m "123" text.txt (Incorrect)
$git commit -m "PROJ#123" text.txt (Correct)
$git push origin "branch-name"
But by the time I hit above git push then incorrect commit messages also pushed to stash server.
How to restrict this. If I need to push the valid commits to stash server.
Regards
Anil