Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ group(:development, optional: true) do
gem 'pry'
gem 'pry-byebug'
end

group(:release, optional: true) do
gem 'faraday-retry', require: false
gem 'github_changelog_generator', require: false
Comment thread
bastelfreak marked this conversation as resolved.
end
25 changes: 25 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,28 @@ require "bundler/gem_tasks"
Dir.glob(File.join('tasks/**/*.rake')).each { |file| load file }

task default: :spec

begin
require 'github_changelog_generator/task'
require_relative 'lib/puppetserver/ca/version'

GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.header = <<~HEADER.chomp
# Changelog

All notable changes to this project will be documented in this file.
HEADER
config.user = 'openvoxproject'
config.project = 'openvoxserver-ca'
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
config.future_release = Puppetserver::Ca::VERSION
config.since_tag = '2.7.0'
end
rescue LoadError
task :changelog do
abort("Run `bundle install --with release` to install the `github_changelog_generator` gem.")
end
end

desc 'Prepare for a release'
task 'release:prepare' => [:changelog]