mirror of
https://github.com/louis-e/arnis.git
synced 2026-06-14 08:57:24 -04:00
ci: don't swallow a following flag as --resolution value
Per PR review: `--resolution --duplicates N` stored the literal "--duplicates" as the resolution. Only consume the next arg if it isn't another flag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
6
.github/scripts/comment-on-issue.sh
vendored
6
.github/scripts/comment-on-issue.sh
vendored
@@ -23,8 +23,10 @@ while (($#)); do
|
||||
;;
|
||||
--resolution)
|
||||
shift
|
||||
resolution="${1-}"
|
||||
(($#)) && shift
|
||||
# Only take the next arg if it's a real value, not another flag (or end of args).
|
||||
if (($#)) && [[ "$1" != --* ]]; then
|
||||
resolution="$1"; shift
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Tolerate bare issue numbers as duplicates; reject anything else.
|
||||
|
||||
Reference in New Issue
Block a user