mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 12:57:58 +00:00
[ci] change labels (#1533)
* [ci] change labels * fix c1-low label * fix C-labels * revert audit labels * add x-labels check Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
2cb13a1a4f
commit
58f6fc1477
@@ -18,16 +18,15 @@ ensure_labels() {
|
||||
# Must have one of the following labels
|
||||
releasenotes_labels=(
|
||||
'B0-silent'
|
||||
'B1-releasenotes'
|
||||
'B7-runtimenoteworthy'
|
||||
'B1-note_worthy'
|
||||
)
|
||||
|
||||
# Must be an ordered list of priorities, lowest first
|
||||
priority_labels=(
|
||||
'C1-low 📌'
|
||||
'C3-medium 📣'
|
||||
'C7-high ❗️'
|
||||
'C9-critical ‼️'
|
||||
'C1-low'
|
||||
'C3-medium'
|
||||
'C5-high'
|
||||
'C7-critical'
|
||||
)
|
||||
|
||||
audit_labels=(
|
||||
@@ -38,6 +37,13 @@ audit_labels=(
|
||||
'D9-needsaudit 👮'
|
||||
)
|
||||
|
||||
x_labels=(
|
||||
'X0-node'
|
||||
'X1-runtime'
|
||||
'X2-API'
|
||||
'X9-misc'
|
||||
)
|
||||
|
||||
echo "[+] Checking release notes (B) labels for $CI_COMMIT_BRANCH"
|
||||
if ensure_labels "${releasenotes_labels[@]}"; then
|
||||
echo "[+] Release notes label detected. All is well."
|
||||
@@ -46,6 +52,16 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if has_label "$repo" "$pr" 'B1-note_worthy'; then
|
||||
echo "[+] B1-note_worthy is chosen. Checking that there X-labels for $CI_COMMIT_BRANCH"
|
||||
if ensure_labels "${x_labels[@]}"; then
|
||||
echo "[+] X-label detected. All is well."
|
||||
else
|
||||
echo "[!] X-label not detected. Please add one of: ${x_labels[*]}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "[+] Checking release priority (C) labels for $CI_COMMIT_BRANCH"
|
||||
if ensure_labels "${priority_labels[@]}"; then
|
||||
echo "[+] Release priority label detected. All is well."
|
||||
|
||||
Reference in New Issue
Block a user