{"id":31967398,"url":"https://github.com/manvirheer/lefthook-templates","last_synced_at":"2026-04-18T17:35:22.474Z","repository":{"id":316991537,"uuid":"1065589498","full_name":"manvirheer/lefthook-templates","owner":"manvirheer","description":"Lefthook templates to prevent bad commit messages","archived":false,"fork":false,"pushed_at":"2025-09-28T03:22:01.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-24T03:39:56.002Z","etag":null,"topics":["devops","git","github","lefthook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manvirheer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"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":"2025-09-28T03:03:27.000Z","updated_at":"2025-09-28T03:26:22.000Z","dependencies_parsed_at":"2025-09-28T05:37:17.048Z","dependency_job_id":"487deb7a-f8f3-4b27-b6ba-1cb530fe4fb0","html_url":"https://github.com/manvirheer/lefthook-templates","commit_stats":null,"previous_names":["manvirheer/lefthook-templates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manvirheer/lefthook-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manvirheer%2Flefthook-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manvirheer%2Flefthook-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manvirheer%2Flefthook-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manvirheer%2Flefthook-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manvirheer","download_url":"https://codeload.github.com/manvirheer/lefthook-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manvirheer%2Flefthook-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31978263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":["devops","git","github","lefthook"],"created_at":"2025-10-14T18:19:18.884Z","updated_at":"2026-04-18T17:35:22.468Z","avatar_url":"https://github.com/manvirheer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lefthook Templates\n\nThis repository contains templates and configurations for [Lefthook](https://github.com/evilmartians/lefthook) - a fast and powerful Git hooks manager.\n\n## About\n\nLefthook is a Git hooks manager that allows you to manage Git hooks with ease. This repository provides reusable templates and configurations for common development workflows.\n\n## Templates\n\n### Complete Lefthook Setup\n\nA comprehensive Lefthook configuration with installation script and validation hooks.\n\n**Includes:**\n- `lefthook.yml` - Main configuration with commit-msg and pre-push hooks\n- `.lefthook/lefthook-installation.js` - Automatic installation script\n- `.lefthook/commit-msg/validate-message.sh` - Commit format validation\n- `.lefthook/commit-msg/no-merge-commit.sh` - Merge commit prevention\n\n**Features:**\n- Cross-platform compatible (Windows, macOS, Linux)\n- Intelligent CI detection and skipping\n- Custom commit message format validation\n- Pre-push checks with build validation\n- Colorized output\n\n**Setup:**\n\n1. Copy the entire `.lefthook/` directory and `lefthook.yml` to your project\n2. Add to your `package.json`:\n   ```json\n   {\n     \"scripts\": {\n       \"postinstall\": \"node ./.lefthook/lefthook-installation.js\"\n     },\n     \"devDependencies\": {\n       \"lefthook\": \"^1.11.13\"\n     }\n   }\n   ```\n3. Make scripts executable: `chmod +x .lefthook/commit-msg/*.sh`\n4. Install dependencies: `yarn install`\n\n**Customization:**\n- Modify commit types in `validate-message.sh`\n- Adjust build commands in `lefthook.yml` for your project\n- Update CI detection in `lefthook-installation.js`\n\n## Usage\n\nBrowse the templates above and copy the ones that fit your project needs. Each template is designed to be easily customizable and well-documented.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanvirheer%2Flefthook-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanvirheer%2Flefthook-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanvirheer%2Flefthook-templates/lists"}