mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Fix up CI for new labels (#2673)
* Fix up CI/CD for the new labels. * Fix labels
This commit is contained in:
@@ -23,10 +23,10 @@ releasenotes_labels=(
|
||||
)
|
||||
|
||||
priority_labels=(
|
||||
'C1-low'
|
||||
'C3-medium'
|
||||
'C7-high'
|
||||
'C9-critical'
|
||||
'C1-low 📌'
|
||||
'C3-medium 📣'
|
||||
'C7-high ❗️'
|
||||
'C9-critical ‼️'
|
||||
)
|
||||
|
||||
echo "[+] Checking release notes (B) labels for $CI_COMMIT_BRANCH"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user