{"id":44119971,"url":"https://github.com/unthreaded/git-hooks","last_synced_at":"2026-02-20T15:02:27.026Z","repository":{"id":36532412,"uuid":"200926266","full_name":"unthreaded/git-hooks","owner":"unthreaded","description":"Small, lightweight tool to ensure ticket numbers make it into your Git commit messages","archived":false,"fork":false,"pushed_at":"2026-02-08T17:06:01.000Z","size":407,"stargazers_count":1,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-08T23:43:41.406Z","etag":null,"topics":["git","git-hooks","hacktoberfest","jira"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unthreaded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-06T21:22:57.000Z","updated_at":"2026-02-08T17:05:56.000Z","dependencies_parsed_at":"2023-02-18T07:01:28.886Z","dependency_job_id":"b1e78297-8bf1-478c-932b-4d4deb0651f4","html_url":"https://github.com/unthreaded/git-hooks","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"purl":"pkg:github/unthreaded/git-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unthreaded%2Fgit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unthreaded%2Fgit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unthreaded%2Fgit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unthreaded%2Fgit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unthreaded","download_url":"https://codeload.github.com/unthreaded/git-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unthreaded%2Fgit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29655026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","hacktoberfest","jira"],"created_at":"2026-02-08T19:04:19.755Z","updated_at":"2026-02-20T15:02:27.010Z","avatar_url":"https://github.com/unthreaded.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-hooks\n[![](https://github.com/unthreaded/git-hooks/workflows/Git%20hooks%20Pipeline/badge.svg)](https://github.com/unthreaded/git-hooks/actions?workflow=Git+hooks+Pipeline)\n\u0026nbsp;\u0026nbsp;[![codecov](https://codecov.io/gh/unthreaded/git-hooks/branch/master/graph/badge.svg)](https://codecov.io/gh/unthreaded/git-hooks)\n\u0026nbsp;\u0026nbsp;![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/unthreaded/git-hooks?label=Latest%20Version)\n\n## What is git-hooks?\nGit hooks is a commit hook that works with git to make sure your issue, ticket, Jira, and story numbers make it to the commit message.\n\nFor example:\n```shell script\ngit checkout -b feature/GH-123-example-branch\n...\n# stage some work\n...\ngit commit -m \"Completed work and unit tests\"\n...\ngit log -n 1 --format=oneline\nafb126992c7e780939ef9b931f38c2cb0c47f91f (HEAD -\u003e feature/GH-123-example-branch) GH-123: Completed work and unit tests\n```\nNotice that the issue number, GH-123, was copied into the commit message.\n\nOur hook can even handle the lack of a ticket:\n```shell script\ngit checkout -b need-this-yesterday\n...\ngit commit -m \"PROD FIX\"\n...\ngit log -n 1 --format=oneline\n75d23ddd3a9bd613dde8bbe447fb6a45c7af0a3b (HEAD -\u003e need-this-yesterday) NOGH: PROD FIX\n```\n## How do I install?\nVisit our [releases](https://github.com/unthreaded/git-hooks/releases) to download the most recent binary.\n\nSetup a central git hooks directory:\n * Windows users can use: `C:\\Users\\\u003cyou\u003e\\.githooks\\ `\n```shell script\ncd ~\nmkdir .githooks\ngit config --global core.hooksPath ~/.githooks\n```\n\nIn the zip you downloaded from [releases](https://github.com/unthreaded/git-hooks/releases), you will find 3 folders:\n - Linux\n - Mac\n - Windows\n \nCopy all files from the zip directory of your respective OS to: `~/.githooks`\n\nOn Linux \u0026 Mac, make the hook executable:\n```shell script\nchmod +x ~/.githooks/commit-msg\n```\n\nOn Mac you may run into a security warning. To resolve this:\n```shell\nxattr -rd com.apple.quarantine commit-msg\n```\n\nLastly, edit this config file to your liking:\n\n    ~/.githooks/commit-msg-config.ini\n    \n## If you run into issues\n* #### The hook is not being triggered\n    * Check your [core.hooksPath](https://git-scm.com/docs/githooks) - this setting can be `--global` or by repository. Check this first.\n* #### The hook is having a runtime error\n    * Please submit an issue with the terminal output you received [here](https://github.com/unthreaded/git-hooks/issues) with as much detail as possible.\n\n## Contributing\n[How to contribute](./CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funthreaded%2Fgit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funthreaded%2Fgit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funthreaded%2Fgit-hooks/lists"}