Git hooks we are using.
ruby 2.4.1+
git clone https://github.com/websecret/git-hooks /tmp/git-hooks
cp /tmp/git-hooks/validate-commit-message .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
type: post-commit
Hook that posts a comment to a redmine issue. It extracts id of the linked issue from the last commit message using next pattern:
"refs #ISSUE_ID; ..."
Also, you must set REDMINE_API_TOKEN
environment variable.
type: commit-msg
Hook that validates commit message.