Code Monkey home page Code Monkey logo

changelogmanagement's Introduction

ChangelogManagement

Tests Windows PowerShell Tests Windows Pwsh Tests Linux Tests macOS codecov

All Contributors

ChangelogManagement is a PowerShell module for reading and manipulating changelog files in Keep a Changelog 1.0.0 format.

The primary feature is automatic updating of changelogs at release time in a CI/CD workflow via Update-Changelog.

Other features include:

  • Creating new changelog files via New-Changelog
  • Adding data to changelog files via Add-ChangelogData
  • Getting changelog contents (parsed into a PowerShell object) via Get-ChangelogData
  • Converting changelogs into other formats via ConvertFrom-Changelog

Getting Started

ChangelogManagement is designed to be cross-platform and fully compatible with Windows PowerShell 5.1 and PowerShell 7+ on Windows/Linux/macOS.

Prerequisites

No prerequisites are required beyond having PowerShell installed.

Installing

ChangelogManagement is listed in the PowerShell Gallery here, which means you can install on any internet-connected computer running PowerShell 5.1+ by running this command:

Install-Module -Name ChangelogManagement

Usage

Examples

$LinkPattern   = @{
    FirstRelease  = "https://github.com/testuser/testrepo/tree/v{CUR}"
    NormalRelease = "https://github.com/testuser/testrepo/compare/v{PREV}..v{CUR}"
    Unreleased    = "https://github.com/testuser/testrepo/compare/v{CUR}..HEAD"
}
Update-Changelog -ReleaseVersion 1.1.1 -LinkMode Automatic -LinkPattern $LinkPattern
  • Does not generate output, but:
    • Takes all Unreleased changes in .\CHANGELOG.md and adds them to a new release tagged with ReleaseVersion and today's date.
    • Updates links according to LinkPattern.
    • Creates a new, blank Unreleased section.
New-Changelog
  • Does not generate output, but creates a new changelog at .\CHANGELOG.md.
Add-ChangelogData -Type "Added" -Data "Spanish language translation"
  • Does not generate output, but adds a new Added change into changelog at .\CHANGELOG.md.
Get-ChangelogData
  • Returns an object containing Header, Unreleased, Released, Footer, and LastVersion properties.
ConvertFrom-Changelog -Path .\CHANGELOG.md -Format Release -OutputPath docs\CHANGELOG.md
  • Does not generate output, but creates a file at docs\CHANGELOG.md that is the same as the input with the Unreleased section removed.

Documentation

For detailed documentation, click here on GitHub, see the docs folder in a release, or run Get-Help for the individual function in PowerShell.

Questions/Comments

If you have questions, comments, etc, please enter a GitHub Issue with the "question" tag.

Contributing/Bug Reporting

Contributions and bug reports are gladly accepted! Please see CONTRIBUTING.md for details.

Building

Building is unnecessary, per se. The provided build YAML generates documentation files and metadata, then does the actual releasing and publishing. If modifying locally, you can simply use the updated .psd1/.psm1 files without running a build process.

Contributors

Nate Scherer
Nate Scherer

๐Ÿ’ป ๐Ÿ“– ๐Ÿš‡
James Charlesworth
James Charlesworth

๐Ÿ’ป
Gael
Gael

๐Ÿ’ป
Johan Ljunggren
Johan Ljunggren

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind are welcome!

License

This project is licensed under The MIT License - see LICENSE for details.

Acknowledgements

Hosted By: Cloudsmith

Package repository hosting is graciously provided by Cloudsmith.

changelogmanagement's People

Contributors

allcontributors[bot] avatar azure-pipelines[bot] avatar dependabot[bot] avatar github-actions[bot] avatar johlju avatar natescherer avatar nscherer-chipotle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.