DEV: Print plugin changes in details blocks (#18345)

Update formatting of the `release_note` rake task. Use `[details]` blocks for each change category so more plugins fit on one screen.
This commit is contained in:
Joshua Rosenfeld 2022-09-23 10:29:00 -04:00 committed by GitHub
parent 7d3e763f01
commit 9662ca7ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -56,7 +56,7 @@ task "release_note:plugins:generate", :from, :to, :plugin_glob, :org do |t, args
puts "### #{name}\n\n"
CHANGE_TYPES.each do |ct|
print_changes(ct[:heading], changes[ct], "####")
print_changes_plugin(ct[:heading], changes[ct])
end
end
@ -105,6 +105,14 @@ def print_changes(heading, changes, importance)
puts changes.to_a, ""
end
def print_changes_plugin(heading, changes)
return if changes.length == 0
puts "[details=\"#{heading}\"]\n", ""
puts changes.to_a, ""
puts "[/details]\n", ""
end
def better(line)
line = remove_prefix(line)
line = escape_brackets(line)