@bluecateng/git-checks

Validation commands for Git hooks

Usage no npm install needed!

<script type="module">
  import bluecatengGitChecks from 'https://cdn.skypack.dev/@bluecateng/git-checks';
</script>

README

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 check-git-msg-story $1
# .husky/pre-push
npx check-git-commits-story

To check commit messages without story numbers use:

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