updated github_pull_request_create.sh

pull/16/head
Hari Sekhon 3 months ago
parent fd09bb2033
commit 376c5ecfb1

@ -179,6 +179,8 @@ if [ "$total_commits" -gt 0 ]; then
fi
if [ "$GITHUB_PULL_REQUEST_AUTO_MERGE" = true ]; then
pr_url="$(get_pr_url)"
# do not quote as supplying unexpected empty args would likely break command
# shellcheck disable=SC2086
gh pr merge "$pr_url" --auto ${GITHUB_PULL_REQUEST_SQUASH:+--squash} ${GITHUB_PULL_REQUEST_SQUASH:---merge}
fi
echo >&2

Loading…
Cancel
Save