{"id":13466701,"url":"https://github.com/legend80s/git-commit-msg-linter","last_synced_at":"2025-04-05T12:09:08.997Z","repository":{"id":34876677,"uuid":"186245451","full_name":"legend80s/git-commit-msg-linter","owner":"legend80s","description":"git commit message linter hook","archived":false,"fork":false,"pushed_at":"2024-08-05T11:22:12.000Z","size":2697,"stargazers_count":341,"open_issues_count":3,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T11:11:23.053Z","etag":null,"topics":["conventions","git-commit","hook","linter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/legend80s.png","metadata":{"files":{"readme":"README-zh-CN.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-12T11:19:40.000Z","updated_at":"2025-03-12T18:45:33.000Z","dependencies_parsed_at":"2024-05-19T16:36:19.643Z","dependency_job_id":"05ed29d8-0b3f-4610-bbb5-afd6aad46b70","html_url":"https://github.com/legend80s/git-commit-msg-linter","commit_stats":null,"previous_names":["legend80s/commit-msg-linter"],"tags_count":98,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legend80s%2Fgit-commit-msg-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legend80s%2Fgit-commit-msg-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legend80s%2Fgit-commit-msg-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legend80s%2Fgit-commit-msg-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legend80s","download_url":"https://codeload.github.com/legend80s/git-commit-msg-linter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"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":["conventions","git-commit","hook","linter"],"created_at":"2024-07-31T15:00:48.953Z","updated_at":"2025-04-05T12:09:08.976Z","avatar_url":"https://github.com/legend80s.png","language":"JavaScript","readme":"# git-commit-msg-linter\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/legend80s/commit-msg-linter/master/assets/demo-6-zh-cn-compressed.png\" alt=\"git-commit-msg-linter zh-CN demo\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\n\u003e 👀 规范开发者的每一行提交信息，为团队定制专属的 Git 提交信息规范\n\n## 安装\n\n```sh\nnpm install git-commit-msg-linter --save-dev\n```\n\n**只需安装无需配置**，提交信息已处于 lint 状态，现在去提交代码试试。\n\n## 设置提示语言\n\n默认使用系统设置语言（`$ node -p 'Intl.DateTimeFormat().resolvedOptions().locale'`），可通过以下两种方式自定义语言，支持中文（zh-CN）、英文（en-US）葡萄牙语（pt-BR）和 es-ES。以下配置顺序优先级从高到低：\n\n### 通过 commitlinterrc.json 设置\n\n```json\n{\n  \"lang\": \"zh-CN\"\n}\n```\n\n### 通过环境变量设置\n\n```sh\necho 'export COMMIT_MSG_LINTER_LANG=zh-CN' \u003e\u003e ~/.zshrc\n```\n\nprofile 文件可以是 `.bash_profile`, `.zshrc` 等。\n\n## 优点\n\n1. 可视化，低学习成本\n2. 零配置，易上手\n3. 错误提交对症提示，对不熟悉提交信息规范习惯的开发者友好\n4. i18，支持中文、英文、葡萄牙\n5. 可自定义团队规范\n6. 使用模糊匹配自动纠正 type\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegend80s%2Fgit-commit-msg-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegend80s%2Fgit-commit-msg-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegend80s%2Fgit-commit-msg-linter/lists"}