Skip to content

Commit 1b425cb

Browse files
committed
API call is only made for cross-repository Pull Requests
1 parent abf60d1 commit 1b425cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/generate-release-maintenance.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ jobs:
9898
PR_NUMBER=${PR_URL##*/}
9999
fi
100100
101-
gh api -X PATCH "repos/${GH_REPO}/pulls/${PR_NUMBER}" -f maintainer_can_modify=true
101+
if [[ "${GH_REPO%%/*}" != "$FORK_OWNER" ]]; then
102+
gh api -X PATCH "repos/${GH_REPO}/pulls/${PR_NUMBER}" -f maintainer_can_modify=true
103+
fi

0 commit comments

Comments
 (0)