Unverified Commit 573152f2 authored by s3krit's avatar s3krit Committed by GitHub
Browse files

update generate_release_text.rb (#1812)

parent 79bb4e74
Pipeline #111659 passed with stages
in 22 minutes and 59 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment