Skip to content

Commit aa465ae

Browse files
committed
Add changelog rake task
1 parent e22d9f1 commit aa465ae

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Rakefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,20 @@ namespace :lint do
8787
end
8888

8989
task default: ['lint:all', 'test']
90+
91+
begin
92+
require 'rubygems'
93+
require 'github_changelog_generator/task'
94+
95+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
96+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
97+
config.user = 'overlookinfra'
98+
config.project = 'foreman_openbolt'
99+
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
100+
config.future_release = gem_version
101+
end
102+
rescue LoadError
103+
task :changelog do
104+
abort("Run `bundle install --with release` to install the `github_changelog_generator` gem.")
105+
end
106+
end

0 commit comments

Comments
 (0)