7 Commits

6 changed files with 34 additions and 25 deletions

View File

@@ -1,9 +1,3 @@
{ {
"scopes": [ "scopes": ["commands", "changelog", "readme", "release", "config"]
"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,28 @@
Generation of this changelog is based on commits 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
- [6c663cf7f] - **commands**: allow chore type in validation regex
## v1.5.0 ## v1.5.0
### Features ### Features

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", "name": "@resultium/rcz",
"version": "1.5.1", "version": "1.6.0",
"description": "Resultium commit standardization library, based on conventional commits", "description": "Resultium commit standardization library, based on conventional commits",
"main": "./dist/index.js", "main": "./dist/index.js",
"bin": { "bin": {

View File

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