Skip to content

Simple dotnet tool to peek at the release notes of a particular version in a changelog

License

Notifications You must be signed in to change notification settings

BitTacklr/peek-at-changelog

Repository files navigation

Peek At Changelog

Allows one to extract the release notes from a changelog, think CHANGELOG.md according to the https://keepachangelog.com format, for a particular version or fallback to the Unreleased notes if none specified. How you compose the changelog is out of scope. What you do with the output of the tool is out of scope.

Installation

Install as a .NET tool using

dotnet tool install peek-at-changelog

Usage

USAGE: peek-at-changelog [--help] [--version <version>] [--fallback] <path>

CHANGELOG:

    <path>                specify the path of the changelog

OPTIONS:

    --version <version>   specify the version
    --fallback            falls back to unreleased version if version not found
    --help                display this list of options.

Behavior

  • Assumes versions start with ## (a level 2 heading). Supports both versions with and without a link definition. However, version links without a matching link definition will not work.
  • If no version specified, it defaults to Unreleased. If no Unreleased version is specified, it defaults to an empty response. If a version is not found, it also defaults to an empty response.
  • Automatically trims leading and trailing empty lines.

Run

dotnet peek-at-changelog CHANGELOG.md if installed as a local tool or peek-at-changelog CHANGELOG.md if installed as a global tool.

Acknowledgements

There are other efforts that may suit your needs better, so do compare. No hard feelings ;-)

About

Simple dotnet tool to peek at the release notes of a particular version in a changelog

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published