Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
/ changelog-generator Public archive

Generate a simple changelog for your release.

License

Notifications You must be signed in to change notification settings

Arkni/changelog-generator

Repository files navigation

changelog-generator Build Status

 ██████╗██╗  ██╗ █████╗ ███╗   ██╗ ██████╗ ███████╗██╗      ██████╗  ██████╗        ██████╗ ███╗   ██╗
██╔════╝██║  ██║██╔══██╗████╗  ██║██╔════╝ ██╔════╝██║     ██╔═══██╗██╔════╝       ██╔════╝ ████╗  ██║
██║     ███████║███████║██╔██╗ ██║██║  ███╗█████╗  ██║     ██║   ██║██║  ███╗█████╗██║  ███╗██╔██╗ ██║
██║     ██╔══██║██╔══██║██║╚██╗██║██║   ██║██╔══╝  ██║     ██║   ██║██║   ██║╚════╝██║   ██║██║╚██╗██║
╚██████╗██║  ██║██║  ██║██║ ╚████║╚██████╔╝███████╗███████╗╚██████╔╝╚██████╔╝      ╚██████╔╝██║ ╚████║
 ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝  ╚═════╝        ╚═════╝ ╚═╝  ╚═══╝

Generate a simple changelog for your release.

Install

$ npm install -g changelog-gn

Usage

$ changelog --help

Usage
    $ changelog

Options
    -b, --base       Specify the path of the git repo. By default, all file paths
                     are relative to process.cwd()
    -c, --commitish  The commit-ish from which you want to generate the changelog.
                     Default to `${latest-tag}..HEAD`
    -p, --preset     The preset to use in order to generate the change log. You
                     can chose `grunt`, `jquery` or `node` presets. If no preset
                     is specified, then a simple changelog will be generated.
    -r, --release    The version of the upcoming release. If not specified, the cli
                     will read the version from `package.json`.
    -V, --verbose    Output more detailed information
    -h, --help       Display this notice

Examples
    $ changelog
    $ changelog --base /home/github/changelog-generator
    $ changelog -c 1.0.0..HEAD -p jquery -r 1.0.1

Examples

$ changelog
1.0.0 / 2016-02-23
==================

  * 1.0.0
  * initial commit

$ changelog -c 1.0.0..HEAD -p jquery -r 1.0.1 -b /home/github/a-jq-project
1.0.1 / 2016-02-23
==================

## Core
  * Minor tweeks
  * Make objects iterable

## Event
  * Remove an internal argument

$ changelog -p grunt
1.3.0:
  date: 2016-04-15
  changes:
    - Add `Grunt` preset
    - Refactor
    - Satisfy XO -_-
    - Add `Prepend to CHANGELOG.md` example (@wbruno)

$ # Prepend the generated changelog to `CHANGELOG.md`
$ echo -e "$(changelog -p node)\n\n$(cat CHANGELOG.md)" > CHANGELOG.md

License

MIT © Brahim Arkni

About

Generate a simple changelog for your release.

Resources

License

Stars

Watchers

Forks

Packages

No packages published