Fix contribution policy exemptions - #184
Conversation
|
The change is small, focused, well-tested, and correct. Let me do a final assessment of potential issues:
I found no discrete, actionable problems introduced by this change. The logic correctly addresses the visibility-dependent LGTM! |
|
All 23 tests pass. Let me assess the core logic for correctness and any introduced issues. The change is sound. Let me evaluate the key design points:
One observation worth noting (non-blocking): the permission check at line 78-86 uses the first-fetch I found no discrete, actionable problems introduced by this change. The fix correctly addresses the visibility-dependent LGTM! |
GitHub’s
author_associationdepends on the viewer: the Actions token classified a maintainer asCONTRIBUTORand auto-closed #167. This uses the author’s effective repository permission instead, which is the authority the exemption is meant to represent.Drafts are no longer a blanket exemption. External draft PRs are subject to the same checks as ready PRs; maintainers, Dependabot, and
policy/overrideremain exempt.