mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
update label names for check_labels job
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#shellcheck source=lib.sh
|
||||
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/lib.sh"
|
||||
|
||||
# Must have one of the following labels
|
||||
labels=(
|
||||
'B0-silent'
|
||||
'B1-releasenotes'
|
||||
'B2-runtimenoteworthy'
|
||||
)
|
||||
|
||||
echo "[+] Checking labels for $CI_COMMIT_BRANCH"
|
||||
|
||||
for label in "${labels[@]}"; do
|
||||
if has_label 'paritytech/polkadot' "$CI_COMMIT_BRANCH" "$label"; then
|
||||
echo "[+] Label $label detected, test passed"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[!] PR does not have one of the required labels! Please add one of: ${labels[*]}"
|
||||
exit 1
|
||||
Reference in New Issue
Block a user