使用自然语言对你的提交进行检查
我开发了 NaturalCommitLint,这是一个使用自然语言规则而非正则表达式来检查提交信息的代码检查工具。<p>你可以用简单的英语编写规则(例如:“标题小于54个字符”,“正文必须包含PR编号”)。一个本地的语言模型会执行这些规则,并输出 LINT_PASS 或 LINT_FAIL。<p>为什么与众不同?<p>无需维护正则表达式<p>适用于不同的代码库<p>支持持续集成(GitHub Actions、Jenkins、GitLab等)<p>仓库及演示GIF: https://github.com/mujasoft/NaturalCommitLint
查看原文
I made NaturalCommitLint
, a linter that checks commit messages using natural language rules instead of regex.<p>You write rules in plain English (e.g. “Title < 54 chars”, “Body must include PR number”). A local LLM enforces them and outputs LINT_PASS or LINT_FAIL.<p>Why different?<p>No regex maintenance<p>Works across codebases<p>CI-friendly (GitHub Actions, Jenkins, GitLab, etc.)<p>Repo + demo GIF: https://github.com/mujasoft/NaturalCommitLint