Skip to content

Commit e9e5a8b

Browse files
fixes PR number value, removes deprecated GraphQL call (#4725)
1 parent 95fe7e6 commit e9e5a8b

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/upsert-release-pr.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ jobs:
130130
PR_NUMBER=$(gh pr list \
131131
--base main \
132132
--state open \
133-
--search "Release $BUMPED_VERSION in:title" \
134-
--json number,title \
135-
--jq ".[] | select(.title == \"Release $BUMPED_VERSION\") | .number" | head -n 1)
133+
--search "\"Release $BUMPED_VERSION\" in:title" \
134+
--limit 1 \
135+
--json number \
136+
--jq '.[0].number // empty')
136137
137138
if [[ -z "$PR_NUMBER" ]]; then
138139
echo "Unable to find release PR for version $BUMPED_VERSION"
@@ -149,7 +150,11 @@ jobs:
149150
150151
UPDATED_BODY=$(printf "%s\n\n## Release Options\n%s\n- [x] Build streams adapter images\n" "$PR_BODY" "$MARKER")
151152
152-
gh pr edit "$PR_NUMBER" --body "$UPDATED_BODY"
153+
gh api \
154+
--method PATCH \
155+
"repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" \
156+
-f body="$UPDATED_BODY" \
157+
--silent
153158
- name: Tag changesets commit
154159
run: |
155160
# Delete the tags if they already exist (ignore errors if they don't)

0 commit comments

Comments
 (0)