feat(commit-message): bundle policy and validator

This commit is contained in:
csh
2026-07-22 17:26:20 +08:00
parent d83707de23
commit 38ea8caaeb
4 changed files with 738 additions and 75 deletions
@@ -0,0 +1,33 @@
{
"schema_version": 1,
"types": {
"init": ":tada:",
"feat": ":sparkles:",
"fix": ":bug:",
"perf": ":rocket:",
"refactor": ":recycle:",
"style": ":art:",
"docs": ":memo:",
"test": ":white_check_mark:",
"deps": ":package:",
"security": ":lock:",
"deprecate": ":warning:",
"remove": ":wastebasket:",
"chore": ":wrench:",
"contrib": ":busts_in_silhouette:",
"release": ":bookmark:"
},
"scope": {
"optional": true,
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$"
},
"subject": {
"max_length": 72,
"forbidden_suffixes": [".", "。"]
},
"emoji": {
"required_by_default": true,
"requirement_env": "COMMIT_LINT_REQUIRE_EMOJI",
"false_values": ["0", "false"]
}
}