Closed Robbert closed 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.
We should have test for the regular expression. It should allow these:
Fix #42
Fix user/repo#42
We need to test the pattern to allow these:
Fix #55
Fix wesanih/incubator#55
Initially I thought this should be a
pre-commit
hook, but I learned that there is a special hook calledcommit-msg
for this purpose.The plan:
/#(\d+)/
/(issue|bug|feature)-(\d+)
: if so, append#123
to the commit message../{issue}
exists relative to thebugs.url
location frompackage.json
, at least when the URL matches//github.com/{user}/{repo}/issues
.