Changelog manager is a .net tool that works on all supported .net platforms (windows/linux/mac).
Branch | Status |
---|---|
main | |
release |
See CHANGELOG.md managed by this tool.
dotnet tool install Credfeto.ChangeLog.Cmd
To update to latest released version
dotnet tool update Credfeto.ChangeLog.Cmd
dotnet new tool-manifest
dotnet tool install Credfeto.ChangeLog.Cmd --local
To update to latest released version
dotnet tool update Credfeto.ChangeLog.Cmd --local
Common notes
- The parameter
-changelog CHANGELOG.md
is optional and the changelog will be searched for in the current git repo. Its is given explicitly in the examples assuming CHANGELOG.md is in the current directory. - If CHANGELOG.md doesn't exist calling
-add
with and when using-changelog CHANGELOG.md
will create a file at that location. It will error if-changelog CHANGELOG.md
is not used.
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version 1.0.1.27-master
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version 1.0.2.77
Note the value of the --add
parameter matches exactly the heading section in the [Unreleased] section. It will not create/update a new section if it that section does not exist.
dotnet changelog --changelog CHANGELOG.md --add Added --message "Change description"
dotnet changelog --changelog CHANGELOG.md --add Changed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --add Fixed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --add Removed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --add "Deployment Changes" --message "Change description"
Note the value of the --add
parameter matches exactly the heading section in the [Unreleased] section. It will not
create/update a new section if it that section does not exist.
dotnet changelog --changelog CHANGELOG.md --remove Added --message "Change description"
dotnet changelog --changelog CHANGELOG.md --remove Changed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --remove Fixed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --remove Removed --message "Change description"
dotnet changelog --changelog CHANGELOG.md --remove "Deployment Changes" --message "Change description"
This pulls out all the changes in the [Unreleased] section and adds them to to the release given by the version number and sets the release date to be today.
dotnet changelog -changelog CHANGELOG.md --create-release 1.2.3
This pulls out all the changes in the [Unreleased] section and adds them to to the release given by the version number and sets the release date to pending.
dotnet changelog -changelog CHANGELOG.md --create-release 1.2.3 --pending
Notes:
- If the specified version already exists then an error will occur.
- If the specified version is older than the latest release then an error will occur.
Where origin/target
is the name of the branch a PR is to be merged into.
dotnet changelog --changelog CHANGELOG.md --check-insert origin/target
Notes
- Assumes that the branch to be merged into is up-to-date with the latest changes.
- Assumes that all entries have been committed to the local repo.
- All changes in non-committed (staged and unstaged) files are ignored.