MCPcopy Create free account
hub / github.com/automation-co/husky

github.com/automation-co/husky

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.16 ↗ · + Follow · compare 2 versions
29 symbols 79 edges 10 files 23 documented · 79% updated 42d agov0.2.16 · 2022-12-15★ 1762 open issues

Browse by type

Functions 29 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

logo

Husky

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

Make githooks easy!

Inspired from the husky.js


Husky - Git hooks made easy on go | Product Hunt

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: - Customizing Git - Git Hooks - Atlassian Blog on Git Hooks - Fei's Blog | Get Started with Git Hooks


Other Alternatives

If you feel husky does not fulfill your needs you can also check out: - https://github.com/typicode/husky - https://pre-commit.com/


Developed by @automation-co

Core symbols most depended-on inside this repo

Shape

Function 29

Languages

Go100%

Modules by API surface

internal/lib/lib_test.go14 symbols
internal/lib/utils.go6 symbols
cmd/root.go2 symbols
main.go1 symbols
internal/lib/install.go1 symbols
internal/lib/init.go1 symbols
internal/lib/add.go1 symbols
cmd/install.go1 symbols
cmd/init.go1 symbols
cmd/add.go1 symbols

Dependencies from manifests, versioned

github.com/inconshreveable/mousetrapv1.0.0 · 1×

For agents

$ claude mcp add husky \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page