Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automation-co/husky
git hooks made easy
https://github.com/automation-co/husky
git git-hooks go golang hooks husky
Last synced: about 2 months ago
JSON representation
git hooks made easy
- Host: GitHub
- URL: https://github.com/automation-co/husky
- Owner: automation-co
- License: agpl-3.0
- Created: 2022-03-02T04:07:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T04:35:36.000Z (about 2 years ago)
- Last Synced: 2024-10-27T00:45:58.865Z (2 months ago)
- Topics: git, git-hooks, go, golang, hooks, husky
- Language: Go
- Homepage: https://docs.automations.company/docs/husky/documentation
- Size: 97.7 KB
- Stars: 162
- Watchers: 0
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Husky
[![Build Status](https://github.com/automation-co/husky/workflows/Go/badge.svg?branch=main)](https://github.com/automation-co/husky/actions?query=branch%3Amain)
[![Release](https://img.shields.io/github/release/automation-co/husky.svg)](https://github.com/automation-co/husky/releases)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/automation-co/husky)
[![Go Report Card](https://goreportcard.com/badge/github.com/automation-co/husky)](https://goreportcard.com/report/github.com/automation-co/husky)
![GitHub](https://img.shields.io/github/license/automation-co/husky)
![GitHub issues](https://img.shields.io/github/issues/automation-co/husky)
**Make githooks easy!**
Inspired from the [husky.js](https://github.com/typicode/husky)
## 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
```bash
$ husky add "
"
```### Example
```bash
$ 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 Started with Husky for go ](https://dev.to/devnull03/get-started-with-husky-for-go-31pa)
- [ Git Hooks for your Golang project ](https://dev.to/aarushgoyal/git-hooks-for-your-golang-project-1168)---
## Get Familiar with Git Hooks
Learn more about git hooks from these useful resources:
- [ Customizing Git - Git Hooks ](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
- [ Atlassian Blog on Git Hooks ](https://www.atlassian.com/git/tutorials/git-hooks)
- [ Fei's Blog | Get Started with Git Hooks ](https://medium.com/@f3igao/get-started-with-git-hooks-5a489725c639)---
### 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](https://github.com/automation-co)