Conventional::Changelog
Generates a CHANGELOG.md file from Git metadata using the AngularJS commit conventions.
Since version 1.2.0 the scopes are optional.
Installation
$ gem install conventional-changelog
Usage
$ conventional-changelog
$ conventional-changelog version=vX.Y.Z
or programatically:
require 'conventional_changelog'
ConventionalChangelog::Generator.new.generate!
ConventionalChangelog::Generator.new.generate! version: "vX.Y.Z"
Version param should follow your Git tags format
Examples
Converts this:
2015-03-30 feat(admin): increase reports ranges
2015-03-30 fix(api): fix annoying bug
2015-03-28 feat(api): add cool service
2015-03-28 feat(api): add cool feature
2015-03-28 feat(admin): add page to manage users
into this:
<a name="2015-03-30"></a>
### 2015-03-30
#### Features
* **admin**
* increase reports ranges (4303fd4)
#### Bug Fixes
* **api**
* fix annoying bug (4303fd5)
<a name="2015-03-28"></a>
### 2015-03-28
#### Features
* **api**
* add cool service (4303fd6)
* add cool feature (4303fd7)
* **admin**
* add page to manage users (4303fd8)
Contributing
- Fork it ( https://github.com/dcrec1/conventional-changelog-ruby/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request