title: Commit message hook on github
body: <p>I am trying to setup a pre-receive hook in github that I used to use on STASH. In STASH, I had a pre-receive hook that used to enforce "A custom commit message that should have a JIRA number included in it". </p>
  
  <p>Now, I am trying to understand what would be the best way to do something similar on github. If I split it up, it would be:</p>
  
  <ul>
  <li>Requiring a custom commit message.</li>
  <li>Every commit should include an existing JIRA. </li>
  <li>Enforce this on any pull request as well.</li>
  </ul>
  
  <p>Eg: TEST-1 Adding the first commit message. </p>
  
  <p>Can anybody here help me, how can this be done ? </p>