You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use collaborator permission API instead of event payload author_association
The webhook event payload's author_association field is unreliable for PRs
originating from forks: even if the author is an org member or explicit
collaborator with maintain/write permissions, fork PRs receive CONTRIBUTOR.
This change queries the collaborator permission API directly to get the
author's actual permission level (admin/maintain/write/triage/read/none),
which is authoritative regardless of whether the PR comes from a fork or
a branch in the main repo.
Requires contents:write permission to access the collaborator API endpoint.
Made-with: Cursor
0 commit comments