mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
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:
parent
7d3e763f01
commit
9662ca7ee4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user