6 Commits

9 changed files with 28 additions and 83 deletions

View File

@@ -1,20 +0,0 @@
---
name: "Bug Report"
about: Report a reproducible bug or regression
title: "Bug: "
---
## Steps To Reproduce
<!-- Simple, clear, laconical, reproducible steps how to cause this bug in a development environment -->
1.
2.
## The current behavior
<!-- It is recommended to provide an image or a video, if that is not possible a very concise text would suffice -->
## The expected behavior
<!-- Describe the expected behavior -->

View File

@@ -1,29 +0,0 @@
---
name: "Feature Request"
about: Standard feature request template.
title: "Feature: "
---
## Feature summary
<!-- e.g. -->
Add legal page to the website
## The expected behavior
<!-- e.g. -->
- Ability to select a language for legal page
- Presence of a legal page in sitemap
- Ability to add different legal documents in a .md format
## Helpful resources
<!-- e.g. -->
- [Svelte Markdown on NPM](https://www.npmjs.com/package/svelte-markdown)
## Notes
First two documents are going to be Privacy Policy and Terms of Service

View File

@@ -1,9 +0,0 @@
---
name: "Task"
about: "Staff task template "
title: "Task: "
---
<!-- Describe the task here, e.g. -->
Change pricing to medium standard

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,22 @@
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 ## v1.5.1
### Fixes ### 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", "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"
); );