fix(commands): allow chore type (#7)

allow chore type to permit validate subcommand usage together with release subcommand
This commit is contained in:
2023-08-23 22:43:23 +03:00
parent 92f8126abf
commit 53bb1437a0
2 changed files with 6 additions and 1 deletions

View File

View File

@@ -115,6 +115,11 @@ program
value: "refactor", value: "refactor",
hint: "code change that neither fixes a bug nor adds a feature", 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("|") || config?.types?.map((type) => type.value).join("|") ||
"feat|fix|build|ci|docs|perf|refactor" "feat|fix|build|ci|docs|perf|refactor"
})(\\((${ })(\\((${
config?.scopes?.join("|") || "..*" config?.scopes ? [...config?.scopes, "release"] : "..*"
})\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`, })\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`,
"gm" "gm"
); );