Skip to content

Commit 6692629

Browse files
authored
Merge pull request #93 from OpenVoxProject/changelog-7.x
Generate human-readable ChangeLog
2 parents f0b3318 + 296f925 commit 6692629

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ group(:development, optional: true) do
6666
end
6767

6868
group(:packaging) do
69+
gem 'github_changelog_generator'
6970
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.99')
7071
end
7172

Rakefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,30 @@ if Rake.application.top_level_tasks.grep(/^gettext:/).any?
131131
abort("Run `bundle install --with documentation` to install the `gettext-setup` gem.")
132132
end
133133
end
134+
135+
begin
136+
require "github_changelog_generator/task"
137+
require_relative "lib/puppet/version"
138+
139+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
140+
config.header = <<~HEADER.chomp
141+
# Changelog
142+
143+
All notable changes to this project will be documented in this file.
144+
HEADER
145+
config.user = "openvoxproject"
146+
config.project = "puppet"
147+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
148+
config.since_tag = "7.36.1"
149+
config.future_release = Puppet::PUPPETVERSION
150+
# FIXME: The following should be enough to ignore versions in the main
151+
# branch only, but this does not work. For now we rely on a regexp to
152+
# exclude tags that should not be matched.
153+
config.release_branch = "7.x"
154+
config.exclude_tags_regex = /\A8\./
155+
end
156+
rescue LoadError
157+
task :changelog do
158+
abort("Run `bundle install --with packaging` to install the `github_changelog_generator` gem.")
159+
end
160+
end

0 commit comments

Comments
 (0)