summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-04-12 15:47:14 -0700
committerJohn Keiser <john@johnkeiser.com>2016-04-14 14:09:01 -0700
commitd445562f164a20cfdafab0b9685303265475d76a (patch)
treea4ca126815d75e85b75e45d72a78df5c5915a7d0 /Rakefile
parent812ddb2ea27bfc379cdef781ddf262149c0d80c9 (diff)
downloadchef-zero-d445562f164a20cfdafab0b9685303265475d76a.tar.gz
Bump version to 4.6jk/bump-version
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index bbb984c..c43a6a3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -52,11 +52,15 @@ task :berkshelf_spec do
system("cd #{gem_path} && thor spec:ci")
end
-require 'github_changelog_generator/task'
+begin
+ require "github_changelog_generator/task"
-GitHubChangelogGenerator::RakeTask.new :changelog do |config|
- # config.future_release = ChefZero::VERSION
- config.enhancement_labels = "enhancement,Enhancement,New Feature".split(',')
- config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(',')
- config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog".split(',')
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+ config.future_release = ChefZero::VERSION
+ config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
+ config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
+ config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
+ end
+rescue LoadError
+ puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
end