用自然语言润色你的提交信息
1 分•作者: mujasoft•8 个月前
我开发了 NaturalCommitLint,这是一个使用自然语言规则而非正则表达式来检查提交信息的 linter(代码检查工具)。
你用通俗易懂的英语编写规则(例如,“标题 < 54 个字符”,“正文必须包含 PR 编号”)。一个本地 LLM(大型语言模型)会执行这些规则,并输出 LINT_PASS 或 LINT_FAIL。
为什么不一样?
* 无需维护正则表达式
* 适用于所有代码库
* 对 CI 友好(GitHub Actions、Jenkins、GitLab 等)
代码库 + 演示 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