We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a9df5 commit 1f6cf23Copy full SHA for 1f6cf23
.github/workflows/issue-bot.yml
@@ -337,8 +337,9 @@ jobs:
337
exit 0
338
fi
339
340
- # Get current PR body
341
- gh pr view "${{ github.event.pull_request.number }}" --json body --jq '.body' > /tmp/pr-body.txt
+ # Get current PR body via REST API (avoids GraphQL scope requirements)
+ PR_API="repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}"
342
+ gh api "$PR_API" --jq '.body' > /tmp/pr-body.txt
343
344
# Append closes lines for issues not already in the body
345
ADDED=false
@@ -358,4 +359,4 @@ jobs:
358
359
360
361
- gh pr edit "${{ github.event.pull_request.number }}" --body-file /tmp/pr-body.txt
362
+ gh api "$PR_API" -X PATCH -f body="$(cat /tmp/pr-body.txt)"
0 commit comments