Skip to content

bluecatengineering/git-checks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-checks · GitHub license npm version

Scripts for use in Git hooks.

Install

$ npm i -D @bluecateng/git-checks husky

Usage

The provided scripts are meant to be used as githooks from husky.

To check commit messages for story numbers use:

# .husky/commit-msg
npx --no-install check-git-msg-story $1
# .husky/pre-push
npx --no-install check-git-commits-story

To check commit messages without story numbers use:

# .husky/commit-msg
npx --no-install check-git-msg $1
# .husky/pre-push
npx --no-install check-git-commits