Skip to content

Commit d2b8cc0

Browse files
committed
Implement changelog generator
1 parent a767d7a commit d2b8cc0

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ pom.xml
33
/.clj-kondo/
44
/.idea/
55
/.lsp
6+
/.vendor
7+
/vendor
8+
/.bundle
9+
/Gemfile.lock

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
2+
3+
group :release, optional: true do
4+
gem 'faraday-retry', '~> 2.1', require: false
5+
gem 'github_changelog_generator', '~> 1.16.4', require: false
6+
#gem 'github_changelog_generator', github: 'smortex/github-changelog-generator', branch: 'avoid-processing-a-single-commit-multiple-time', require: false
7+
end

Rakefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
begin
2+
require 'github_changelog_generator/task'
3+
rescue LoadError
4+
task :changelog do
5+
abort('Run `bundle install --with release` to install the `github_changelog_generator` gem.')
6+
end
7+
else
8+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
9+
config.header = <<~HEADER.chomp
10+
# Changelog
11+
12+
All notable changes to this project will be documented in this file.
13+
HEADER
14+
config.user = 'OpenVoxProject'
15+
config.project = 'clj-parent'
16+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
17+
# this is probably the worst way to do this
18+
# ideally there would be a VERSION file and clojure and Rake would read it
19+
config.future_release = File.readlines('project.clj').grep(/clj-parent/).first.scan(/".*"/).first.gsub('"', '')
20+
# we limit the changelog to all new openvox releases, to skip perforce onces
21+
# otherwise the changelog generate takes a lot amount of time
22+
config.since_tag = '7.3.38'
23+
#config.exclude_tags_regex = /\A7\./
24+
config.release_branch = 'main'
25+
end
26+
end

0 commit comments

Comments
 (0)