

GitHub - phly/keep-a-changelog: Tools for manipulating CHANGELOG.md files in Kee...
source link: https://github.com/phly/keep-a-changelog
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
keep-a-changelog
This project provides tooling support for working with Keep A Changelog.
Installation
Run the following to install this library:
$ composer require phly/keep-a-changelog
Alternately, install globally, for use with any repository:
$ composer global require phly/keep-a-changelog
If you install globally, ensure you add $HOME/.composer/bin
to your $PATH
environment variable. Once setup this way, you can call keep-a-changelog
instead of ./vendor/bin/keep-a-changelog
.
Usage
You may get a list of commands by running:
$ ./vendor/bin/keep-a-changelog
Currently supported commands include:
-
tag
allows tagging a release based on the latest version discovered in theCHANGELOG.md
file. The tag will contain the changelog entry for that version within the commit message. -
release
will push a tag to GitHub, and then create a release for it, using the changelog entry for the release. -
bump
andbump:bugfix
will prepend a new changelog entry for a new bugfix release, based on the latest release found in theCHANGELOG.md
file. -
bump:minor
will prepend a new changelog entry for a new minor release, based on the latest release found in theCHANGELOG.md
file. -
bump:major
will prepend a new changelog entry for a new major release, based on the latest release found in theCHANGELOG.md
file. -
entry:added
will add a new changelog entry to the Added section of the current changelog within theCHANGELOG.md
file. -
entry:changed
will add a new changelog entry to the Changed section of the current changelog within theCHANGELOG.md
file. -
entry:deprecated
will add a new changelog entry to the Deprecated section of the current changelog within theCHANGELOG.md
file. -
entry:removed
will add a new changelog entry to the Removed section of the current changelog within theCHANGELOG.md
file. -
entry:fixed
will add a new changelog entry to the Fixed section of the current changelog within theCHANGELOG.md
file.
For a list of required parameters and all options for a command, run:
$ ./vendor/bin/keep-a-changelog help <command>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK