Skip to content

Commit 3c30640

Browse files
takuomarboledacci
andauthored
fix: additional-args does not accept quoted string (#67)
for example, `additional-args: "--merge -d -b '[skip ci]'"` Co-authored-by: marboledacci <[email protected]>
1 parent f1ecf63 commit 3c30640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/pr-merge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
branch="$(eval printf '%s' "$ORB_EVAL_BRANCH")"
3-
additional_args="$(eval printf '%s\\n' "$ORB_EVAL_ADDITIONAL_ARGS")"
3+
readarray -t additional_args < <(eval "set -- $ORB_EVAL_ADDITIONAL_ARGS; printf '%s\n' \"\$@\"")
44
hostname="$(eval printf '%s' "$ORB_EVAL_HOSTNAME")"
55
repo="$(eval printf '%s' "$ORB_EVAL_REPO")"
66
token="${!ORB_ENV_TOKEN}"
@@ -21,5 +21,5 @@ set -x
2121
# shellcheck disable=SC2086
2222
gh pr merge \
2323
$branch $repo \
24-
$additional_args
24+
"${additional_args[@]}"
2525
set +x

0 commit comments

Comments
 (0)