Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update Plugin Release Notes heading format (#14218)

Joshua Rosenfeld823354d1776d
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