Skip to content

websecret/git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

git-hooks

Git hooks we are using.

Requirements

ruby 2.4.1+

Installation example:

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

post-redmine-comment

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.

validate-commit-message

type: commit-msg

Hook that validates commit message.

Releases

No releases published

Packages

No packages published

Languages