diff --git a/polkadot/scripts/github/generate_release_text.rb b/polkadot/scripts/github/generate_release_text.rb index 5e91d50cfc..c2dfb1e0a7 100644 --- a/polkadot/scripts/github/generate_release_text.rb +++ b/polkadot/scripts/github/generate_release_text.rb @@ -54,7 +54,10 @@ substrate_cl = Changelog.new( prefix: true ) -all_changes = polkadot_cl.changes + substrate_cl.changes +# Combine all changes into a single array and filter out companions +all_changes = (polkadot_cl.changes + substrate_cl.changes).reject do |c| + c[:title] =~ /[Cc]ompanion/ +end # Set all the variables needed for a release @@ -62,6 +65,23 @@ misc_changes = Changelog.changes_with_label(all_changes, 'B1-releasenotes') client_changes = Changelog.changes_with_label(all_changes, 'B5-clientnoteworthy') runtime_changes = Changelog.changes_with_label(all_changes, 'B7-runtimenoteworthy') +# Add the audit status for runtime changes +runtime_changes.each do |c| + if c.labels.any? { |l| l[:name] == 'D1-audited👍' } + c[:pretty_title] = "✅ `audited` #{c[:pretty_title]}" + next + end + if c.labels.any? { |l| l[:name] == 'D9-needsaudit👮' } + c[:pretty_title] = "❌ `AWAITING AUDIT` #{c[:pretty_title]}" + next + end + if c.labels.any? { |l| l[:name] == 'D5-nicetohaveaudit⚠️' } + c[:pretty_title] = "⏳ `pending non-critical audit` #{c[:pretty_title]}" + next + end + c[:pretty_title] = "✅ `trivial` #{c[:pretty_title]}" +end + release_priority = Changelog.highest_priority_for_changes(all_changes) # Pulled from the previous Github step