Fix up CI for new labels (#2673)

* Fix up CI/CD for the new labels.

* Fix labels
This commit is contained in:
Gavin Wood
2021-03-23 12:17:29 +01:00
committed by GitHub
parent edb36153b1
commit 3c8b9271c4
3 changed files with 19 additions and 36 deletions
@@ -66,19 +66,27 @@ runtime_changes = Changelog.changes_with_label(all_changes, 'B7-runtimenoteworth
# Add the audit status for runtime changes
runtime_changes.each do |c|
if c.labels.any? { |l| l[:name] == 'D1-audited👍' }
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]}"
if c.labels.any? { |l| l[:name] == 'D2-notlive 💤' }
c[:pretty_title] = " `not live` #{c[:pretty_title]}"
next
end
if c.labels.any? { |l| l[:name] == 'D5-nicetohaveaudit⚠️' }
if c.labels.any? { |l| l[:name] == 'D3-trivial 🧸' }
c[:pretty_title] = "✅ `trivial` #{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]}"
if c.labels.any? { |l| l[:name] == 'D9-needsaudit 👮' }
c[:pretty_title] = "❌ `AWAITING AUDIT` #{c[:pretty_title]}"
next
end
c[:pretty_title] = "⭕️ `unknown audit requirements` #{c[:pretty_title]}"
end
# The priority of users upgraded is determined by the highest-priority