From 240c82b60e3188ae9580ece1d58b4fc8f6eab977 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 5 Jan 2025 12:26:46 +0100 Subject: [PATCH] ci/request-reviews: limit to 10 maintainer review requests This mirrors ofborg for now. --- ci/request-reviews/request-reviewers.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/request-reviews/request-reviewers.sh b/ci/request-reviews/request-reviewers.sh index 7bb4d110fe1bd..ee5664f04cbb3 100755 --- a/ci/request-reviews/request-reviewers.sh +++ b/ci/request-reviews/request-reviewers.sh @@ -68,6 +68,11 @@ for user in "${!users[@]}"; do fi done +if [[ "${#users[@]}" -gt 10 ]]; then + log "Too many reviewers (${!users[@]}), skipping review requests" + exit 1 +fi + for user in "${!users[@]}"; do log "Requesting review from: $user"