Sign inSign up

wesone/chap

By wesone

•Updated about 4 years ago

A simple changelog parser

Image
0

246

wesone/chap repository overview

⁠Chap

This project is a simple changelog parser written in Node.js. The parser assumes that Semantic Versioning⁠ will be used and that the format roughly conforms to Keep a Changelog⁠.

It will simply check if a specified changelog follows rules like:

  • contains an 'Unreleased' section at the top of all releases
  • uses only valid types of changes
  • does not contain undefined references
  • does not define references that aren't used
  • has valid versioning (e.g. 1.1.0 can't be a later release than 1.2.0)
  • ...

It will not check if the contents of the file comply with the Keep a Changelog⁠ format completely.

⁠Usage

docker run --rm -v /path/to/CHANGELOG.md:/usr/src/app/CHANGELOG.md wesone/chap chap CHANGELOG.md

Use -v or --version to retrieve the current version (the one of the latest release).

chap -v path/to/CHANGELOG.md

Use -c or --changes to retrieve the content (as markdown) of the latest release.

chap -c path/to/CHANGELOG.md

Use --today to also make sure that the date of the latest release is the current date.

chap --today path/to/CHANGELOG.md

Tag summary

Content type

Image

Digest

sha256:5f8ea3d46…

Size

332.9 MB

Last updated

about 4 years ago

docker pull wesone/chap