diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f62e871..d9ddb8c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,5 +1,5 @@ # This configuration was generated by `rubocop --auto-gen-config` -# on 2015-06-11 16:35:14 +0300 using RuboCop version 0.31.0. +# on 2015-06-12 11:23:12 +0300 using RuboCop version 0.31.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -7,7 +7,7 @@ # Offense count: 13 Metrics/AbcSize: - Max: 63 + Max: 71 # Offense count: 1 Metrics/CyclomaticComplexity: diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index 124dead..a32e6eb 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -4,8 +4,18 @@ [Full Changelog](https://github.com/skywinder/changelog_test/compare/0.0.4...HEAD) +**Implemented enhancements:** + +- Enchancment [\#9](https://github.com/skywinder/changelog_test/issues/9) + +**Fixed bugs:** + +- BugFix [\#11](https://github.com/skywinder/changelog_test/issues/11) + **Closed issues:** +- Issue [\#10](https://github.com/skywinder/changelog_test/issues/10) + - Issue with some other label - Should be in closed issues [\#8](https://github.com/skywinder/changelog_test/issues/8) ## [0.0.4](https://github.com/skywinder/changelog_test/tree/0.0.4) (2015-05-22) diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 2f252d9..3de8f07 100644 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -50,6 +50,18 @@ module GitHubChangelogGenerator opts.on("-o", "--output [NAME]", "Output file. Default is CHANGELOG.md") do |last| options[:output] = last end + opts.on("--bugs-label [LABEL]", "Setup custom label for bug-fixes section. Default is \"**Fixed bugs:**""") do |v| + options[:bug_prefix] = v + end + opts.on("--enhancement-label [LABEL]", "Setup custom label for enhancements section. Default is \"**Implemented enhancements:**\"") do |v| + options[:enhancement_prefix] = v + end + opts.on("--issues-label [LABEL]", "Setup custom label for closed-issues section. Default is \"**Closed issues:**\"") do |v| + options[:issue_prefix] = v + end + opts.on("--pr-label [LABEL]", "Setup custom label for pull requests section. Default is \"**Merged pull requests:**\"") do |v| + options[:merge_prefix] = v + end opts.on("--[no-]issues", "Include closed issues in changelog. Default is true") do |v| options[:issues] = v end