{"id":17086554,"url":"https://github.com/arl/prepare-commit-msg","last_synced_at":"2026-05-04T04:34:19.623Z","repository":{"id":57707219,"uuid":"503267364","full_name":"arl/prepare-commit-msg","owner":"arl","description":"Git prepare-commit-msg hook that prepends the commit message with the file or directory modified in the commit","archived":false,"fork":false,"pushed_at":"2022-06-14T08:25:06.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T14:42:11.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/arl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-14T08:11:45.000Z","updated_at":"2022-06-14T08:22:13.000Z","dependencies_parsed_at":"2022-09-26T21:20:39.640Z","dependency_job_id":null,"html_url":"https://github.com/arl/prepare-commit-msg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arl/prepare-commit-msg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fprepare-commit-msg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fprepare-commit-msg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fprepare-commit-msg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fprepare-commit-msg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arl","download_url":"https://codeload.github.com/arl/prepare-commit-msg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fprepare-commit-msg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32595197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-14T13:28:56.113Z","updated_at":"2026-05-04T04:34:19.606Z","avatar_url":"https://github.com/arl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prepare-commit-msg\nGit prepare-commit-msg hook that prepends the commit message with the file or directory modified in the commit\n\n## Installation\n\n```\n# Build and install the binary on your system\ngo install github.com/arl/prepare-commit-msg@latest\n\n# Install it as git hook\nln -s $(which prepare-commit-msg) .git/hooks/prepare-commit-msg\n```\n\n## Examples\n\nIf git status shows:\n```\nOn branch main\nChanges to be committed:\n  (use \"git restore --staged \u003cfile\u003e...\" to unstage)\n        new file:   dir1/file1\n        new file:   dir1/file2\n```\n\nThen the git commit message will be prepared with:\n```\ndir1: \n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n#\n# On branch main\n# Changes to be committed:\n#\tnew file:   dir1/file1\n#\tnew file:   dir1/file2\n```\n\nIf git status shows:\n```\nOn branch main\nChanges to be committed:\n  (use \"git restore --staged \u003cfile\u003e...\" to unstage)\n        modified:   README.md\n```\n\nThen the git commit message will be prepared with:\n```\nREADME.md: \n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n#\n# On branch main\n# Changes to be committed:\n#\tmodified:   README.md\n```\n\nIf there's no common denominator between staged files, then the commit message will be prepended with `all: `\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fprepare-commit-msg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farl%2Fprepare-commit-msg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fprepare-commit-msg/lists"}