diff --git a/.github/scripts/comment-on-issue.sh b/.github/scripts/comment-on-issue.sh index 3fa0534..03262c0 100755 --- a/.github/scripts/comment-on-issue.sh +++ b/.github/scripts/comment-on-issue.sh @@ -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.