diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2e9f57f539..dd4f8952cb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,7 +2,7 @@ version: 2 updates: - package-ecosystem: "cargo" directory: "/" - labels: ["A2-insubstantial", "B0-silent", "C1-low 📌"] + labels: ["A2-insubstantial", "B0-silent", "C1-low"] # Handle updates for crates from github.com/paritytech/substrate manually. ignore: - dependency-name: "substrate-*" @@ -25,6 +25,6 @@ updates: interval: "daily" - package-ecosystem: github-actions directory: '/' - labels: ["A2-insubstantial", "B0-silent", "C1-low 📌", "E3-dependencies"] + labels: ["A2-insubstantial", "B0-silent", "C1-low", "E2-dependencies"] schedule: interval: daily diff --git a/scripts/ci/github/check_labels.sh b/scripts/ci/github/check_labels.sh index 12f07b3495..102b1a4b06 100755 --- a/scripts/ci/github/check_labels.sh +++ b/scripts/ci/github/check_labels.sh @@ -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."