6 Commits

6 changed files with 28 additions and 25 deletions

View File

@@ -1,9 +1,3 @@
{
"scopes": [
"commands",
"changelog",
"readme",
"release",
"config"
]
"scopes": ["commands", "changelog", "readme", "release", "config"]
}

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"cSpell.words": ["Resultium", "Acked", "johndoe", "outro", "rczrc"]
}

View File

@@ -2,6 +2,22 @@
Generation of this changelog is based on commits
## v1.6.0
### Features
- [a5626dbc5] - improve default 'stage all changes' behavior
### Miscellaneous
- [4c892e8b1] - **changelog**: generate for v1.5.2
## v1.5.2
### Fixes
- [8cb67f2cf] - **commands**: incorrect regex generation with specified scopes
## v1.5.1
### Fixes

View File

@@ -1,14 +0,0 @@
{
"version": "0.2",
"ignorePaths": [],
"dictionaryDefinitions": [],
"dictionaries": [],
"words": [
"Acked",
"johndoe",
"outro",
"rczrc"
],
"ignoreWords": [],
"import": []
}

View File

@@ -1,6 +1,6 @@
{
"name": "@resultium/rcz",
"version": "1.5.1",
"version": "1.6.0",
"description": "Resultium commit standardization library, based on conventional commits",
"main": "./dist/index.js",
"bin": {

View File

@@ -45,7 +45,7 @@ const program = new Command();
program
.name("rcz")
.description("Resultium commit standardization command-line interface")
.version("1.4.0");
.version("1.6.0");
program
.command("commit")
@@ -69,7 +69,11 @@ program
? null
: await confirm({
message: "Stage all changes?",
initialValue: true,
initialValue: (
await simpleGit().diff(["--name-only", "--cached"])
).toString()
? false
: true,
});
if (isCancel(stageAll)) {
@@ -467,7 +471,7 @@ program
config?.types?.map((type) => type.value).join("|") ||
"feat|fix|build|ci|docs|perf|refactor|chore"
})(\\((${
config?.scopes ? [...config?.scopes, "release"] : "..*"
config?.scopes ? [...config?.scopes, "release"].join("|") : "..*"
})\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`,
"gm"
);