DEV: Don't print plugin changes in details blocks (#22328)

This commit is contained in:
Neil Lalonde 2023-06-28 11:28:08 -04:00 committed by GitHub
parent d40da76c8e
commit d6a82f1034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -54,7 +54,7 @@ task "release_note:plugins:generate", :from, :to, :plugin_glob, :org do |t, args
end
puts "### #{name}\n\n"
CHANGE_TYPES.each { |ct| print_changes_plugin(ct[:heading], changes[ct]) }
CHANGE_TYPES.each { |ct| print_changes(ct[:heading], changes[ct], "####") }
end
puts "(No changes found in #{no_changes_repos.join(", ")})"
@ -100,14 +100,6 @@ 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)