From 022f31efae83660deafda33b73b321a3856f2a3e Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Sun, 13 Oct 2024 18:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(root|=E6=A0=B9?= =?UTF-8?q?=E7=9B=AE=E5=BD=95):=20=E9=85=8D=E7=BD=AE=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=9A=84=E8=8C=83=E5=9B=B4=E5=9F=9F=EF=BC=8C?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=9F=9F=E5=B7=B2=E7=BB=8F=E7=A1=AE=E5=AE=9A?= =?UTF-8?q?=E5=A5=BD=E4=BA=86=E3=80=82=E5=9F=BA=E4=BA=8Emonorepo=E5=86=B3?= =?UTF-8?q?=E5=AE=9A=E8=8C=83=E5=9B=B4=E5=9F=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commitlint.config.cjs | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/commitlint.config.cjs b/commitlint.config.cjs index bb2fc81..18f7f9c 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -19,6 +19,24 @@ module.exports = { footer: "列举关联issue (可选) 例如: #31, #I3244 :\n", confirmCommit: "是否提交或修改commit ?", }, + + /** + * 基于monorepo内项目,决定提交范围域 + */ + scopes: [ + "root|根目录", + "vuepress-preset-config|vp2预设配置", + "vercel-deploy-tool|vc部署工具", + "utils|工具包", + "demo|测试项目", + ], + + allowCustomScopes: true, + allowEmptyScopes: true, + customScopesAlign: "bottom", + customScopesAlias: "custom", + emptyScopesAlias: "empty", + types: [ { value: "✨ feat", name: "✨ feat: 新增功能 | A new feature" }, { value: "🐞 fix", name: "🐞 fix: 修复缺陷 | A bug fix" }, @@ -51,12 +69,7 @@ module.exports = { useAI: false, aiNumber: 1, themeColorCode: "", - scopes: ["root"], - allowCustomScopes: true, - allowEmptyScopes: true, - customScopesAlign: "bottom", - customScopesAlias: "custom", - emptyScopesAlias: "empty", + upperCaseSubject: false, markBreakingChangeMode: false, allowBreakingChanges: ["feat", "fix"],