Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ create_pr_if_not_exists() {

local pr_exists=false
if [[ "${search_method}" == "search" ]]; then
if [[ $(gh pr list --search "head:${branch_name}" --json number --jq 'length') -gt 0 ]]; then
if [[ $(gh pr list --search "head:${branch_name}" --state all --json number --jq 'length') -gt 0 ]]; then
pr_exists=true
fi
else
if [[ $(gh pr list --head "${branch_name}" --json number --jq 'length') -gt 0 ]]; then
if [[ $(gh pr list --head "${branch_name}" --state all --json number --jq 'length') -gt 0 ]]; then
pr_exists=true
fi
fi
Expand Down
Loading