From b9cfda5d3bbbe70de95ff5a96177aa1d74e01c56 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 5 Aug 2026 01:57:05 +0300 Subject: [PATCH] chore: add perf and build to allowed commit types The org config froze allow_commit_types at an older subset of the core default (feat, fix, docs, style, refactor, test, chore, ci), silently dropping perf and build which are in the upstream default. Add a comment warning against freezing the list, mirroring the allow_branch_types note. --- commit-check.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commit-check.toml b/commit-check.toml index 8116d21..3aaec05 100644 --- a/commit-check.toml +++ b/commit-check.toml @@ -18,7 +18,10 @@ subject_capitalized = false subject_imperative = true subject_max_length = 100 subject_min_length = 5 -allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "ci"] +# Keep this list in sync with the core default — restating it freezes the +# allowed set (same trap as allow_branch_types below). Core default: +# feat, fix, docs, style, refactor, test, chore, perf, build, ci +allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "perf", "build", "ci"] allow_merge_commits = true allow_revert_commits = true allow_empty_commits = false