Skip to content

Commit 91f2bd4

Browse files
committed
Ensure maintainer_can_modify=true
1 parent c28aa2c commit 91f2bd4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ jobs:
8080
--title "$VERSION - Release Maintenance" \
8181
--body "Automated release maintenance updates for version $VERSION."$'\n'"Command executed: \`./release-maintenance.sh -t \"$TAG\" -d \"$DATE\" --prime \"$PRIME\" --community \"$COMMUNITY\"\`"
8282
else
83-
gh pr create \
83+
PR_URL=$(gh pr create \
8484
--title "$VERSION - Release Maintenance" \
8585
--body "Automated release maintenance updates for version $VERSION."$'\n'"Command executed: \`./release-maintenance.sh -t \"$TAG\" -d \"$DATE\" --prime \"$PRIME\" --community \"$COMMUNITY\"\`" \
8686
--base "$BASE_BRANCH" \
87-
--head "${FORK_OWNER}:${BRANCH_NAME}"
88-
fi
87+
--head "${FORK_OWNER}:${BRANCH_NAME}")
88+
PR_NUMBER=${PR_URL##*/}
89+
fi
90+
91+
gh api -X PATCH "repos/${GH_REPO}/pulls/${PR_NUMBER}" -f maintainer_can_modify=true

0 commit comments

Comments
 (0)