How to mandate the target process id in git commit. I know the way of writing the hooks but don't know how to validate whether mentioned target process id is valid or not. github is being used as git host. Want something like follows:
User will do 'git commit' with format like below:
TargetProcess ticket id:
Detailed description:....
- Now user will push this branch to GitHub. Here, push should fail if mentioned is not available in targetprocess. If mentioned ticket number is valid, then allow push.