chore: CI: keep PRs from private org members open in auto-close workflow

This PR fixes the auto-close workflow closing PRs from org members whose membership is private, which the event payload reports as non-members. Before closing, the workflow now checks the author's repository permission and keeps PRs from anyone with write access open. If the permission lookup fails, it leaves the PR open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed