Home

Awesome

<img src="https://user-images.githubusercontent.com/64161383/155763268-e09d9613-a53f-4ec7-a943-aab93ef2ffa6.png" width="150px" alt="logo" align="right" /> <div align="left">

Husky

Build Status Release GitHub go.mod Go version Go Report Card GitHub GitHub issues

</div> <!-- --- -->

Make githooks easy!

Inspired from the husky.js


<a href="https://www.producthunt.com/posts/husky-4?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-husky&#0045;4" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=346044&theme=light" align="right" alt="Husky - Git&#0032;hooks&#0032;made&#0032;easy&#0032;on&#0032;go | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

Docs

Installation

go install github.com/automation-co/husky@latest

Getting Started

You can initialise husky by $ husky init

Make sure you have git initialised

This will make the .husky folder with the hooks folder and a sample pre-commit hook

You can add hooks using

$ husky add <hook> "
  <your commands for that hook>
"

Example

$ husky add pre-commit "
  go build -v ./... 
  go test -v ./...
"

If you have made any other changes in the hooks you can apply them by using $ husky install


Blogs and Resources


Get Familiar with Git Hooks

Learn more about git hooks from these useful resources:


Other Alternatives

If you feel husky does not fulfill your needs you can also check out:


<div align="center">

Developed by @automation-co

</div>