From 6fa89c23166f0cfb74122a284c425609313177d5 Mon Sep 17 00:00:00 2001 From: Jules YZERD Date: Tue, 16 Jun 2026 12:09:28 +0200 Subject: [PATCH] fix(scripts): print error message before silent exit 1 in edit-issue-labels.sh When the script is called with no --add-label or --remove-label arguments, it exited with code 1 without writing anything to stderr. The caller had no way to distinguish this from other failures and received no diagnostic. Add an explicit error message so the reason for the non-zero exit is visible in CI logs and manual runs. Co-Authored-By: Claude Sonnet 4.6 --- scripts/edit-issue-labels.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/edit-issue-labels.sh b/scripts/edit-issue-labels.sh index 8a95a87a49..f52654fb1f 100755 --- a/scripts/edit-issue-labels.sh +++ b/scripts/edit-issue-labels.sh @@ -38,6 +38,7 @@ while [[ $# -gt 0 ]]; do done if [[ ${#ADD_LABELS[@]} -eq 0 && ${#REMOVE_LABELS[@]} -eq 0 ]]; then + echo "Error: at least one --add-label or --remove-label is required" >&2 exit 1 fi