mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
ci: add commitlint and Husky for conventional commit validation (#2416)
- Add @commitlint/cli and @commitlint/config-conventional at repo root - Configure commitlint with project-specific types (security, etc.) - Set up Husky v9 with commit-msg hook running commitlint - Add pre-commit hook running biome check on CLI source Fixes #2406 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d60d0626e9
commit
b1afa4615f
5 changed files with 208 additions and 3 deletions
23
commitlint.config.ts
Normal file
23
commitlint.config.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
export default {
|
||||
extends: ["@commitlint/config-conventional"],
|
||||
rules: {
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"build",
|
||||
"chore",
|
||||
"ci",
|
||||
"docs",
|
||||
"feat",
|
||||
"fix",
|
||||
"perf",
|
||||
"refactor",
|
||||
"revert",
|
||||
"security",
|
||||
"style",
|
||||
"test",
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue