Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
357036d029
|
|||
| 1e8bfd04dc | |||
| 8e460614f5 |
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"scopes": ["commands", "changelog", "readme", "release", "config"]
|
||||
"scopes": ["commands", "changelog", "readme", "release", "config"],
|
||||
"autoSignReleases": true
|
||||
}
|
||||
|
||||
129
CHANGELOG.md
129
CHANGELOG.md
@@ -1,117 +1,98 @@
|
||||
# Changelog
|
||||
|
||||
Generation of this changelog is based on commits
|
||||
|
||||
## v1.7.0
|
||||
|
||||
## v1.8.0
|
||||
### Features
|
||||
- [1e8bfd04d] - **commands**: add option to change unreleased change title
|
||||
### Fixes
|
||||
- [8e460614f] - **commands**: have unreleased section for changelog
|
||||
## v1.7.0
|
||||
### Features
|
||||
|
||||
- [f4a7a0d2b] - **commands**: add release script customizability (#12)
|
||||
- [c80d76325] - **config**: add auto-signing options
|
||||
- [498c830e3] - change tag message schema (#11)
|
||||
|
||||
## 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
|
||||
|
||||
- [d1099c1e6] - **release**: v1.7.0
|
||||
## v1.6.0
|
||||
### Features
|
||||
- [a5626dbc5] - improve default 'stage all changes' behavior
|
||||
### Miscellaneous
|
||||
- [f51bb88de] - **release**: v1.6.0
|
||||
- [4c892e8b1] - **changelog**: generate for v1.5.2
|
||||
## v1.5.2
|
||||
### Fixes
|
||||
- [8cb67f2cf] - **commands**: incorrect regex generation with specified scopes
|
||||
### Miscellaneous
|
||||
- [63a6c9fea] - **release**: v1.5.2
|
||||
- [8dbe266e3] - Merge pull request 'Allow chore type in validation regex' (#9) from develop into main
|
||||
- [58f4dde9c] - **changelog**: generate for v1.5.1
|
||||
## v1.5.1
|
||||
### Fixes
|
||||
- [6c663cf7f] - **commands**: allow chore type in validation regex
|
||||
### Miscellaneous
|
||||
- [9586a567d] - **release**: v1.5.1
|
||||
- [535a62857] - **changelog**: generate for v1.5.0
|
||||
- [03f68e291] - Merge pull request 'Release v1.5.0' (#8) from develop into main
|
||||
## v1.5.0
|
||||
### Features
|
||||
|
||||
- [92f8126ab] - **commands**: add --amend option to commit sub-command
|
||||
- [5080d71fb] - **config**: allow more config file names
|
||||
|
||||
### Fixes
|
||||
|
||||
- [53bb1437a] - **commands**: allow chore type (#7)
|
||||
|
||||
### Miscellaneous
|
||||
- [71925553c] - **release**: v1.5.0
|
||||
- [56ad837b8] - Merge pull request 'Add the ability to return only the code of validation command' (#6) from develop into main
|
||||
- [003c943a7] - **changelog**: generate for v1.4.0
|
||||
## v1.4.0
|
||||
|
||||
### Features
|
||||
|
||||
- [8ab631549] - **commands**: add the ability to return code only for validation command
|
||||
|
||||
- [8ab631549] - **commands**: add the ability to return code only for validation
|
||||
### Miscellaneous
|
||||
- [77dfc9a73] - **release**: v1.4.0
|
||||
- [2670f79e2] - Merge pull request 'Release v1.3.0' (#5) from develop into main
|
||||
- [3afc2ed07] - Merge branch 'main' into develop
|
||||
- [45458d14e] - **changelog**: generate for v1.3.0
|
||||
- [d61c9ecf2] - Merge pull request 'Make commit signing possible' (#3) from develop into main
|
||||
## v1.3.0
|
||||
|
||||
### Features
|
||||
|
||||
- [755da3bb5] - **commands**: add ability to write a footer
|
||||
- [9311be80b] - **commands**: add commit message validation command (#4)
|
||||
|
||||
### Miscellaneous
|
||||
- [f3c55fac3] - **release**: v1.3.0
|
||||
- [8816db86f] - **changelog**: generate
|
||||
## v1.2.0
|
||||
|
||||
### Features
|
||||
|
||||
- [46a52ddeb] - **commands**: add the ability to sign conventional commits (#2)
|
||||
|
||||
### Miscellaneous
|
||||
- [c69db8f4b] - **release**: v1.2.0
|
||||
- [37a1d0b25] - **changelog**: regenerate to have hashes reference
|
||||
- [2ac0307c8] - **changelog**: generate
|
||||
## v1.1.3
|
||||
|
||||
### Fixes
|
||||
|
||||
- [d3cf78aac] - **commands**: incorrect formatting of changelog hashes
|
||||
|
||||
### Miscellaneous
|
||||
- [66db26931] - **release**: v1.1.3
|
||||
- [605055eb7] - **changelog**: generate
|
||||
## v1.1.2
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
- [e4ba7dab5] - **release**: v1.1.2
|
||||
- [85649a71a] - **commands**: change changelog output text
|
||||
|
||||
- [d30071e3d] - **changelog**: generate changelog
|
||||
## v1.1.1
|
||||
|
||||
### Fixes
|
||||
|
||||
- [7a5880d21] - **commands**: incorrect changelog version generation
|
||||
|
||||
## v1.1.0
|
||||
|
||||
### Features
|
||||
|
||||
- [8e5158726] - **commands**: add release and changelog commands
|
||||
|
||||
### Fixes
|
||||
- [7a5880d21] - **commands**: incorrect changelog version generation
|
||||
### Miscellaneous
|
||||
|
||||
- [06f349c75] - **release**: v1.1.1
|
||||
- [b05591a31] - **release**: v1.1.0
|
||||
|
||||
## v1.0.0
|
||||
|
||||
### Breaking
|
||||
|
||||
- [7ef777bb2] - use commander for command management
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
- [b07d9aaaa] - change question formatting, improve readme
|
||||
|
||||
## v1.0.0-alpha.1
|
||||
|
||||
### Features
|
||||
|
||||
- [b5ca3152c] - add support for body (#1)
|
||||
- [ce0c01347] - initial commit
|
||||
|
||||
### Fixes
|
||||
|
||||
- [2be2887ce] - make commit body wrap properly
|
||||
- [e9d3c5e29] - incorrect config parsing
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
- [b07d9aaaa] - change question formatting, improve readme
|
||||
- [4e16104d6] - change intro and outro messages
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@resultium/rcz",
|
||||
"version": "1.7.0",
|
||||
"version": "1.8.0",
|
||||
"description": "Resultium commit standardization library, based on conventional commits",
|
||||
"main": "./dist/index.js",
|
||||
"bin": {
|
||||
|
||||
15
src/index.ts
15
src/index.ts
@@ -45,7 +45,7 @@ const program = new Command();
|
||||
program
|
||||
.name("rcz")
|
||||
.description("Resultium commit standardization command-line interface")
|
||||
.version("1.7.0");
|
||||
.version("1.8.0");
|
||||
|
||||
program
|
||||
.command("commit")
|
||||
@@ -240,9 +240,14 @@ program
|
||||
.description("Outputs a markdown formatted changelog")
|
||||
.option("--show-hashes", "show first 9 characters of commit hashes")
|
||||
.option("--last-only", "display only latest release changes")
|
||||
.option(
|
||||
"--unreleased-as <version>",
|
||||
"show unreleased changes as different version"
|
||||
)
|
||||
.action(async (options) => {
|
||||
const showHashes = options.showHashes ? true : false;
|
||||
const lastOnly = options.lastOnly ? true : false;
|
||||
const unreleased = options.unreleasedAs || "Unreleased";
|
||||
|
||||
if ((await simpleGit().tags()).all.length === 0) {
|
||||
return console.log(
|
||||
@@ -258,13 +263,15 @@ program
|
||||
console.log("Generation of this changelog is based on commits");
|
||||
|
||||
for (const commit of commits) {
|
||||
const tag = semver.sort(
|
||||
const tag =
|
||||
semver.sort(
|
||||
(await simpleGit().tags([`--contains=${commit.hash}`])).all
|
||||
)[0]!;
|
||||
)[0]! || unreleased;
|
||||
|
||||
const currentCommitStack = parsedCommitStacks.find(
|
||||
(commitStack) => commitStack.version === tag
|
||||
) || {
|
||||
version: tag || "",
|
||||
version: tag || unreleased,
|
||||
breaking: [],
|
||||
features: [],
|
||||
fixes: [],
|
||||
|
||||
Reference in New Issue
Block a user