Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f51bb88de4 | |||
| a5626dbc54 | |||
| 4c892e8b11 | |||
| 63a6c9feab | |||
| 8cb67f2cfd | |||
| 8dbe266e39 |
@@ -1,9 +1,3 @@
|
||||
{
|
||||
"scopes": [
|
||||
"commands",
|
||||
"changelog",
|
||||
"readme",
|
||||
"release",
|
||||
"config"
|
||||
]
|
||||
"scopes": ["commands", "changelog", "readme", "release", "config"]
|
||||
}
|
||||
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"cSpell.words": ["Resultium", "Acked", "johndoe", "outro", "rczrc"]
|
||||
}
|
||||
16
CHANGELOG.md
16
CHANGELOG.md
@@ -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
|
||||
|
||||
14
cspell.json
14
cspell.json
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"version": "0.2",
|
||||
"ignorePaths": [],
|
||||
"dictionaryDefinitions": [],
|
||||
"dictionaries": [],
|
||||
"words": [
|
||||
"Acked",
|
||||
"johndoe",
|
||||
"outro",
|
||||
"rczrc"
|
||||
],
|
||||
"ignoreWords": [],
|
||||
"import": []
|
||||
}
|
||||
@@ -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": {
|
||||
|
||||
10
src/index.ts
10
src/index.ts
@@ -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"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user