Skip to content

z1c1/revert-changelog

Repository files navigation

@z1c1/revert-changelog

A script for reverting change log to set version. Only tested when using standard-version to generate change log.

Features

Revert CHANGELOG to the set version. Only test CHANGELOG.md file generated by standard-version.

Start

npm scripts

npm install -D @z1c1/revert-changelog

config npm scripts:

{
    "scripts": {
        "revert-changelog": "revert-changelog '${version}' '${filename}'"
    }
}

npx

npx @z1c1/revert-changelog "$version" "$filename"

Options

  1. version (Optional): The version you want to revert to. Content before and include the set version in changelog file will be simply cleared. If not set, latest version in changelog file will be reverted.

  2. filename (Optional): The filename of CHANGELOG. Default value is 'CHANGELOG.md'.

Recently changes

See the change log.

License

MIT

About

A script for reverting change log to set version. Only te sted when using `standard-version` to generate change log.

Resources

License

Stars

Watchers

Forks

Packages

No packages published