Skip to content

Commit

Permalink
Apply best practices for our changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jan 12, 2024
1 parent d44ba42 commit 5bf5cea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"

gemspec

group :release do
gem 'faraday-retry', require: false
gem 'github_changelog_generator', require: false
group :release, optional: true do
gem 'faraday-retry', '~> 2.1', require: false
gem 'github_changelog_generator','~> 1.16', '>= 1.16.4', require: false
end
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,15 @@ end
begin
require 'rubygems'
require 'github_changelog_generator/task'

rescue LoadError
# github_changelog_generator is an optional group
else
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
version = Voxpupuli::Release::VERSION
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog modulesync}
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
config.user = 'voxpupuli'
config.project = 'beaker-openstack'
config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
end
rescue LoadError
end

0 comments on commit 5bf5cea

Please sign in to comment.