diff --git a/lib/tool_belt/changelog.rb b/lib/tool_belt/changelog.rb index 624058fe..46832673 100644 --- a/lib/tool_belt/changelog.rb +++ b/lib/tool_belt/changelog.rb @@ -15,7 +15,9 @@ def initialize(config, release_environment, issues) generate_entries(@issues) changelog = format_entries - write_changelog(changelog, config.release, release_environment.main_repo, config.code_name) + releases = config.releases.keys.map { |key| key.to_s } + minor_release = releases.sort_by { |v| v.split('.').map(&:to_i) }.last + write_changelog(changelog, minor_release, release_environment.main_repo, config.code_name) end def generate_entries(issues)