From 823354d1776dd177736e9298325a02b20c296fe2 Mon Sep 17 00:00:00 2001 From: Joshua Rosenfeld Date: Wed, 1 Sep 2021 23:08:31 -0400 Subject: [PATCH] DEV: Update Plugin Release Notes heading format (#14218) --- lib/tasks/release_note.rake | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/tasks/release_note.rake b/lib/tasks/release_note.rake index 01bc01b35b2..0b75aae5224 100644 --- a/lib/tasks/release_note.rake +++ b/lib/tasks/release_note.rake @@ -17,7 +17,7 @@ task "release_note:generate", :from, :to, :repo do |t, args| changes = find_changes(repo, args[:from], args[:to]) CHANGE_TYPES.each do |ct| - print_changes(ct[:heading], changes[ct]) + print_changes(ct[:heading], changes[ct], "###") end if changes.values.all?(&:empty?) @@ -54,11 +54,10 @@ task "release_note:plugins:generate", :from, :to, :plugin_glob, :org do |t, args next end - puts "## #{name}\n\n" + puts "### #{name}\n\n" CHANGE_TYPES.each do |ct| - print_changes(ct[:heading], changes[ct]) + print_changes(ct[:heading], changes[ct], "####") end - puts "---", "" end puts "(No changes found in #{no_changes_repos.join(", ")})" @@ -99,10 +98,10 @@ def find_changes(repo, from, to) changes end -def print_changes(heading, changes) +def print_changes(heading, changes, importance) return if changes.length == 0 - puts "### #{heading}", "" + puts "#{importance} #{heading}", "" puts changes.to_a, "" end