Skip to content

A cli tool to help you keep a changelog in all your projects

License

Notifications You must be signed in to change notification settings

KDesp73/changelogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

changelogger

A cli tool to help you keep a changelog in all your projects

Installation

# 1. Get the source code
$ git clone https://github.com/KDesp73/changelogger --depth=1
$ cd changelogger

# 2. Checkout to the latest release
$ git checkout <latest>

# 3. Build and Install
$ make install

Usage

# Initialize the changelogger
$ changelogger init

# Add an entry
$ changelogger add "Message" --status changed
$ changelogger add --commits

# List entries
$ changelogger list
$ changelogger list -V 0.0.1 --status added

# Edit entries
$ changelogger edit
$ changelogger edit -t "New title"
$ changelogger edit --all # To have all entries available

# Delete entries
$ changelogger delete
$ changelogger delete --all # To have all entries available

# Set variables
$ changelogger set --remote-repo https://github.com/KDesp73/changelogger

# Get variables
$ changelogger get version # Latest release
$ changelogger get --all

# Create a new release
$ changelogger release --new patch
$ changelogger release --yank 0.0.3
$ changelogger release --unyank 0.0.3
$ changelogger release --new patch --asset <path> --push -y

# Push an unpushed release on Github
$ changelogger push -V 0.0.3
$ changelogger push --asset <path>

# Export CHANGELOG.md
$ changelogger export
$ changelogger export --format json

# Import CHANGELOG.md
$ changelogger import -f ./CHANGELOG.md

# Generate various files
$ changelogger generate config

Config file

The default location for the config file is ~/.config/.changelogger.yml

Example file

# ~/.config/.changelogger.yml

editor: nvim
always-export: true
always-push: false
release-warning-message: "Remember to update the version and commit everything important!"
# config-path: /path/to/another/config/to/be/used

Adding the config-path label will redirect changelogger to use that file as a config instead of the default one

Help

Try changelogger -h or changelogger <command> -h

References

LICENSE

MIT