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.CmdTo update to latest released version
dotnet tool update Credfeto.ChangeLog.Cmddotnet new tool-manifest
dotnet tool install Credfeto.ChangeLog.Cmd --localTo update to latest released version
dotnet tool update Credfeto.ChangeLog.Cmd --localCommon notes
- The parameter
-changelog CHANGELOG.mdis 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
-addwith and when using-changelog CHANGELOG.mdwill create a file at that location. It will error if-changelog CHANGELOG.mdis not used.
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version 1.0.1.27-masterdotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version 1.0.2.77Note 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.3This 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 --pendingNotes:
- 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.
Prints the current [Unreleased] section to stdout.
dotnet changelog --changelog CHANGELOG.md --un-releasedValidates the changelog format and reports any errors.
dotnet changelog --changelog CHANGELOG.md --lintLint with additional allowed sections (comma-separated):
dotnet changelog --changelog CHANGELOG.md --lint --additional-sections "Security,Performance"Lint and automatically fix formatting issues (rewrites the file):
dotnet changelog --changelog CHANGELOG.md --lint --fixLint with additional sections and auto-fix:
dotnet changelog --changelog CHANGELOG.md --lint --additional-sections "Security,Performance" --fixNotes:
--lintexits with a non-zero exit code if any errors are found.--fixrewrites the changelog to correct ordering and missing sections in[Unreleased]; it then re-lints to confirm the file is valid.
Where origin/target is the name of the branch a PR is to be merged into.
dotnet changelog --changelog CHANGELOG.md --check-insert origin/targetNotes
- 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.