Skip to content

Commit c5dc95f

Browse files
committed
Setup github_changelog_generator
1 parent 639c57e commit c5dc95f

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ gem 'json'
1818
gem 'octokit'
1919
gem 'rubocop', "~> 1.22"
2020
gem 'rubocop-rake'
21+
gem 'github_changelog_generator'
2122

2223
eval_gemfile("#{__FILE__}.local") if File.exist?("#{__FILE__}.local")

CHANGELOG.md renamed to HISTORY.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## Unreleased
2-
3-
* Use yum/dnf remove instead of erase since erase was deprecated and removed in dnf5.
4-
51
## 8.18.1
62

73
* Fix for the PR removing the ContentsDescription class.

Rakefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require 'open3'
22

3+
OPENVOX_AGENT_VERSION = "8.19.0"
4+
35
RED = "\033[31m".freeze
46
GREEN = "\033[32m".freeze
57
RESET = "\033[0m".freeze
@@ -104,3 +106,23 @@ task(:commits) do
104106
end
105107
puts "#{GREEN}All commit messages match the guidelines!#{RESET}"
106108
end
109+
110+
begin
111+
require "github_changelog_generator/task"
112+
113+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
114+
config.header = <<~HEADER.chomp
115+
# Changelog
116+
117+
All notable changes to this project will be documented in this file.
118+
HEADER
119+
config.user = "openvoxproject"
120+
config.project = "openvox-agent"
121+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
122+
config.future_release = OPENVOX_AGENT_VERSION
123+
end
124+
rescue LoadError
125+
task :changelog do
126+
abort("Run `bundle install --with packaging` to install the `github_changelog_generator` gem.")
127+
end
128+
end

0 commit comments

Comments
 (0)