{"id":13490757,"url":"https://github.com/automation-co/husky","last_synced_at":"2025-03-28T07:31:25.725Z","repository":{"id":37963267,"uuid":"465151702","full_name":"automation-co/husky","owner":"automation-co","description":"git hooks made easy","archived":false,"fork":false,"pushed_at":"2022-12-15T04:35:36.000Z","size":100,"stargazers_count":166,"open_issues_count":3,"forks_count":10,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T07:40:17.672Z","etag":null,"topics":["git","git-hooks","go","golang","hooks","husky"],"latest_commit_sha":null,"homepage":"https://docs.automations.company/docs/husky/documentation","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/automation-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["Aarush-Goyal"]}},"created_at":"2022-03-02T04:07:37.000Z","updated_at":"2025-03-22T15:51:42.000Z","dependencies_parsed_at":"2023-01-29T02:01:03.352Z","dependency_job_id":null,"html_url":"https://github.com/automation-co/husky","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automation-co%2Fhusky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automation-co%2Fhusky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automation-co%2Fhusky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automation-co%2Fhusky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/automation-co","download_url":"https://codeload.github.com/automation-co/husky/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245750376,"owners_count":20666167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-hooks","go","golang","hooks","husky"],"created_at":"2024-07-31T19:00:50.694Z","updated_at":"2025-03-28T07:31:25.699Z","avatar_url":"https://github.com/automation-co.png","language":"Go","funding_links":["https://github.com/sponsors/Aarush-Goyal"],"categories":["Go"],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/64161383/155763268-e09d9613-a53f-4ec7-a943-aab93ef2ffa6.png\" width=\"150px\" alt=\"logo\"  align=\"right\" /\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n\n# Husky\n\n[![Build Status](https://github.com/automation-co/husky/workflows/Go/badge.svg?branch=main)](https://github.com/automation-co/husky/actions?query=branch%3Amain)\n[![Release](https://img.shields.io/github/release/automation-co/husky.svg)](https://github.com/automation-co/husky/releases)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/automation-co/husky)\n[![Go Report Card](https://goreportcard.com/badge/github.com/automation-co/husky)](https://goreportcard.com/report/github.com/automation-co/husky)\n![GitHub](https://img.shields.io/github/license/automation-co/husky)\n![GitHub issues](https://img.shields.io/github/issues/automation-co/husky)\n\n \u003c/div\u003e\n\n\u003c!-- --- --\u003e\n\n**Make githooks easy!**\n\nInspired from the [husky.js](https://github.com/typicode/husky)\n\n\n---\n\u003ca href=\"https://www.producthunt.com/posts/husky-4?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-husky\u0026#0045;4\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=346044\u0026theme=light\" align=\"right\" alt=\"Husky - Git\u0026#0032;hooks\u0026#0032;made\u0026#0032;easy\u0026#0032;on\u0026#0032;go | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /\u003e\u003c/a\u003e\n\n\n## Docs\n\n### Installation\n\n```\ngo install github.com/automation-co/husky@latest\n```\n\n### Getting Started\n\nYou can initialise husky by `$ husky init`\n\n\u003e Make sure you have git initialised\n\nThis will make the .husky folder with the hooks folder and a sample pre-commit hook\n\nYou can add hooks using\n\n```bash\n$ husky add \u003chook\u003e \"\n  \u003cyour commands for that hook\u003e\n\"\n```\n\n### Example\n\n```bash\n$ husky add pre-commit \"\n  go build -v ./... \n  go test -v ./...\n\"\n```\n\nIf you have made any other changes in the hooks you can apply them by using `$ husky install`\n\n---\n\n## Blogs and Resources\n- [ Get Started with Husky for go ](https://dev.to/devnull03/get-started-with-husky-for-go-31pa)\n- [ Git Hooks for your Golang project ](https://dev.to/aarushgoyal/git-hooks-for-your-golang-project-1168)\n\n---\n\n## Get Familiar with Git Hooks\n\nLearn more about git hooks from these useful resources:\n- [ Customizing Git - Git Hooks ](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)\n- [ Atlassian Blog on Git Hooks ](https://www.atlassian.com/git/tutorials/git-hooks)\n- [ Fei's Blog | Get Started with Git Hooks ](https://medium.com/@f3igao/get-started-with-git-hooks-5a489725c639)\n\n---\n\n### Other Alternatives\n\nIf you feel husky does not fulfill your needs you can also check out:\n- https://github.com/typicode/husky\n- https://pre-commit.com/\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\nDeveloped by [@automation-co](https://github.com/automation-co)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomation-co%2Fhusky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomation-co%2Fhusky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomation-co%2Fhusky/lists"}