mirror of
https://github.com/block/goose.git
synced 2026-07-09 16:09:22 +00:00
fix: quote release PR search phrase in pre-release.sh (#9573)
This commit is contained in:
parent
08e7480513
commit
83a4abf3ea
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,10 @@ else
|
|||
SEARCH="chore(release): release version"
|
||||
fi
|
||||
|
||||
PR=$(gh pr list --repo "$REPO" --search "$SEARCH in:title" --state all --limit 1 --json number,title)
|
||||
# Wrap the phrase in quotes so GitHub treats it literally. Without quotes the
|
||||
# parentheses in "release):" are interpreted as search operators and the query
|
||||
# matches nothing.
|
||||
PR=$(gh pr list --repo "$REPO" --search "\"$SEARCH\" in:title" --state all --limit 1 --json number,title)
|
||||
PR_NUMBER=$(echo "$PR" | jq -r '.[0].number // empty')
|
||||
|
||||
if [[ -z "$PR_NUMBER" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue