Skip to content

Commit d776bcb

Browse files
Merge pull request #17 from jessereynolds/rake_gcg
changelog switch to github changelog generator
2 parents 7026cc4 + 3f462d0 commit d776bcb

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

Rakefile

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,28 @@ rescue LoadError
1212
end
1313
# rubocop:enable Lint/SuppressedException
1414

15-
desc "Update Bolt's changelog for release"
16-
task :changelog, [:version] do |_t, args|
17-
sh "scripts/generate_changelog.rb #{args[:version]}"
15+
begin
16+
require 'github_changelog_generator/task'
17+
require_relative 'lib/bolt/version'
18+
19+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
20+
config.header = <<~HEADER.chomp
21+
# Changelog
22+
23+
All notable changes to this project will be documented in this file.
24+
HEADER
25+
config.user = 'openvoxproject'
26+
config.project = 'openbolt'
27+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
28+
config.future_release = Bolt::VERSION
29+
# we limit the changelog to all new openvox releases, to skip perforce onces
30+
# otherwise the changelog generate takes a lot amount of time
31+
config.since_tag = '4.0.0'
32+
end
33+
rescue LoadError
34+
task :changelog do
35+
abort('Run `bundle install --with release` to install the `github_changelog_generator` gem.')
36+
end
1837
end
1938

2039
desc 'Prepare for a release'

0 commit comments

Comments
 (0)