Crates.io | chlog |
lib.rs | chlog |
version | 0.3.0 |
source | src |
created_at | 2022-01-02 18:09:22.970017 |
updated_at | 2022-01-21 10:53:46.711733 |
description | Universal changelog generator using conventional commit+ with monorepo support. |
homepage | |
repository | https://github.com/ydcjeff/chlog |
max_upload_size | |
id | 506653 |
size | 16,876 |
Universal changelog generator using conventional commit+ with monorepo support.
chlog can generate the changelog from the conventional commits with a few extra commit types. The supported commit types are:
fix
-> Bug Fixesdeps
-> Dependency Updatesdeprecate
-> Deprecations (Deprecations are important for users as putting
under refactor is hard to find)dx
-> Developer Experiencedocs
-> Documentationfeat
-> Featuresperf
-> Performance Improvementsrefactor
-> RefactoringIf there is !
after the commit types or commit scope, those commits will be
under BREAKING CHANGES section.
Binary releases can be downloaded at
GitHub release page or if
you want to install with cargo
:
cargo install chlog
chlog has command line options for generating and prepending changelogs.
For the first release, you can run with:
chlog -o CHANGELOG.md -r 0 -t v0.1.0
For the subsequent release,
chlog -o CHANGELOG.md -t v0.2.0
For the packages with monorepo, you can use commit-path
option. It will
generate the changelog scoped to that package.
chlog -o CHANGELOG.md -t v0.3.0 -r 2 --commit-path crates/scope-crate
CLI:
chlog
Description:
Universal changelog generator using conventional commit+
with monorepo support
Usage:
$ chlog [options]
Example:
$ chlog -o CHANGELOG.md -t v1.0.0
$ chlog -o CHANGELOG.md -t v1.0.0
$ chlog -o CHANGELOG.md -t v1.0.0 -r 2
$ chlog -o CHANGELOG.md -t v1.0.0 -r 2 --commit-path crates/scope-crate
Options:
-t <string> Tag name for the next release
-r <number> Number of releases to generate the changelog
If 0, the whole changelog will be generated
(i.e. first release) (default: 1)
-o <file> File to write the generated changelog
It will prepend the changelogs if the file exists
otherwise, will create a new one
--commit-path <path> Generate a changelog scoped to a specific directory
Flags:
-h, --help Show this message
-V, --version Show version number
Source: https://github.com/ydcjeff/chlog
Make sure you have installed Rust.
Setup git hook
git config core.hookspath .githooks