wesaynih / infrastructure

© 2016 The Knights Who Say NIH — Do NOT fork this repository without permission.
http://frameless.io/
Other
0 stars 1 forks source link

Add `commit-msg` hook that requires referencing a GitHub issue number #55

Closed Robbert closed 8 years ago

Robbert commented 8 years ago

Initially I thought this should be a pre-commit hook, but I learned that there is a special hook called commit-msg for this purpose.

The plan:

Robbert commented 8 years ago

I'll put the github.com issue check task on the backburner.

For private repo's I suppose this would require using API tokens for authorization.

Robbert commented 8 years ago

We should have test for the regular expression. It should allow these:

Robbert commented 8 years ago

We need to test the pattern to allow these: