Rakefile in puppet-modulebuilder-0.1.0 vs Rakefile in puppet-modulebuilder-0.2.0
- old
+ new
@@ -22,5 +22,22 @@
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance/**/*_spec.rb'
end
task default: [:spec, :acceptance]
+
+
+if Bundler.rubygems.find_name('github_changelog_generator').any?
+ require 'github_changelog_generator/task'
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+ raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
+ config.user = "puppetlabs"
+ config.project = "puppet-modulebuilder"
+ require 'puppet/modulebuilder/version'
+ config.future_release = "v#{Puppet::Modulebuilder::VERSION}"
+ config.exclude_labels = ['maintenance']
+ config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
+ config.add_pr_wo_labels = true
+ config.issues = false
+ config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
+ end
+end