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 275a6cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
env:
BUNDLE_WITHOUT: release
- name: Run tests
run: bundle exec rake spec
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
7 changes: 4 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,14 @@ 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|
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 275a6cb

Please sign in to comment.