/husky-hg

Hg hooks made easy 🐶 woof!

Primary LanguageJavaScriptMIT LicenseMIT

husky

Modern native Hg hooks made easy, Based on husky

Husky improves your commits and more 🐶 woof!

Install

npm install husky --save-dev

Usage

Edit package.json > prepare script and run it once:

npm set-script prepare "husky install"
npm run prepare

Add a hook:

npx husky add pre-commit "npm test"
hg add .husky/pre-commit

Make a commit:

hg commit -m "Keep calm and commit"
# `npm test` will run

Documentation

https://typicode.github.io/husky