Commit 3a1dcd75 authored by David Schmitt's avatar David Schmitt

Enable changelog generation

parent 0b255edd
......@@ -29,6 +29,7 @@ group :acceptance do
end
group :development do
gem 'github_changelog_generator', git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
gem 'pry'
if RUBY_VERSION[0..2] == '1.9'
gem 'pry-debugger'
......
This diff is collapsed.
......@@ -58,3 +58,36 @@ task(:rubocop) do
cli = RuboCop::CLI.new
cli.run(%w(-D -f s))
end
#### CHANGELOG ####
begin
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
require 'puppet-strings/version'
config.future_release = "v#{PuppetStrings::VERSION}"
config.header = "# Changelog\n\n" \
"All significant changes to this repo will be summarized in this file.\n"
config.configure_sections = {
added: {
prefix: "Added",
labels: ["enhancement"]
},
fixed: {
prefix: "Fixed",
labels: ["bugfix"]
},
breaking: {
prefix: "Changed",
labels: ["backwards-incompatible"]
}
}
config.exclude_labels = ['maintenance']
config.user = 'puppetlabs'
config.project = 'puppet-strings'
end
rescue LoadError
desc 'Install github_changelog_generator to get access to automatic changelog generation'
task :changelog do
raise 'Install github_changelog_generator to get access to automatic changelog generation'
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment