From dd38f3364396a34b63d95fc5c91d17e4dd1537f1 Mon Sep 17 00:00:00 2001 From: mcp-governance-curator Date: Fri, 11 Sep 2026 08:51:49 +0800 Subject: [PATCH] [CTX-0015] fix(dev-tooling): commitlint must accept carryctx [CTX-XXXX] prefix Allow an optional [CTX-XXXX] prefix prepended by the CarryCtx prepare-commit-msg hook, while keeping conventional type, scope, and subject enforcement intact. --- commitlint.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commitlint.config.ts b/commitlint.config.ts index b29b5ae..f26bbcb 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -1,3 +1,9 @@ export default { extends: ["@commitlint/config-conventional"], + parserPreset: { + parserOpts: { + headerPattern: /^(?:\[CTX-\d+\]\s+)?(\w*)(?:\((.*)\))?!?: (.*)$/, + headerCorrespondence: ["type", "scope", "subject"], + }, + }, };