File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,28 @@ rescue LoadError
1212end
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
1837end
1938
2039desc 'Prepare for a release'
You can’t perform that action at this time.
0 commit comments