From 53bb1437a0b88977d7f45af3152f2a2c4bdfdd56 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Wed, 23 Aug 2023 22:43:23 +0300 Subject: [PATCH] fix(commands): allow chore type (#7) allow chore type to permit validate subcommand usage together with release subcommand --- .rczrc => .rczrc.json | 0 src/index.ts | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) rename .rczrc => .rczrc.json (100%) diff --git a/.rczrc b/.rczrc.json similarity index 100% rename from .rczrc rename to .rczrc.json diff --git a/src/index.ts b/src/index.ts index 55e0118..e4a7c1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,6 +115,11 @@ program value: "refactor", hint: "code change that neither fixes a bug nor adds a feature", }, + { + label: "chore", + value: "chore", + hint: "changes that are routinely, e.g. dependency update or a release commit", + }, ], }); @@ -462,7 +467,7 @@ program config?.types?.map((type) => type.value).join("|") || "feat|fix|build|ci|docs|perf|refactor" })(\\((${ - config?.scopes?.join("|") || "..*" + config?.scopes ? [...config?.scopes, "release"] : "..*" })\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`, "gm" );