We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4525be6 + 1628030 commit c38ba3fCopy full SHA for c38ba3f
2 files changed
.github/scripts/create_pr.sh
@@ -41,7 +41,8 @@ EXISTING_PR=$(gh pr list --head "$BRANCH_NAME" --json number --jq '.[0].number'
41
42
if [ -n "$EXISTING_PR" ]; then
43
echo "PR #$EXISTING_PR already exists, updating it"
44
- gh pr edit "$EXISTING_PR" --body "$PR_BODY"
+ # Use REST API instead of gh pr edit to avoid GraphQL read:org scope requirement
45
+ gh api --method PATCH "/repos/{owner}/{repo}/pulls/$EXISTING_PR" -f body="$PR_BODY"
46
else
47
echo "Creating new PR"
48
gh pr create \
changelog_entry.yaml
@@ -0,0 +1,4 @@
1
+- bump: patch
2
+ changes:
3
+ fixed:
4
+ - Fix PR edit permission error in weekly update workflow by using REST API instead of GraphQL.
0 commit comments