Skip to content

codex: use writer reviews for hidden members - #33

Merged
ttaylorr-oai merged 1 commit into
metafrom
ttaylorr/codex-review-writers-only
Aug 9, 2026
Merged

codex: use writer reviews for hidden members#33
ttaylorr-oai merged 1 commit into
metafrom
ttaylorr/codex-review-writers-only

Conversation

@ttaylorr-oai

Copy link
Copy Markdown
Collaborator

The collaborator fallback from #30 is also unavailable to the Actions token. Keep the existing REST fast path, then fall back to GraphQL latestOpinionatedReviews(writersOnly:true) when author_association is hidden. GitHub computes writer eligibility server-side; the non-author, latest-state, and exact-head checks remain unchanged.

This is the follow-up needed for trusted admission of PR #32.

Tests:

  • sh -n .github/workflows/codex-branch.sh
  • git diff --check
  • targeted t9905 topic-review test: passed
  • live GraphQL writersOnly query returns abg-OAI at exact source head

The repository collaborator fallback is also unavailable to the Actions token, so a valid organization-member approval still fails admission.

Keep the REST fast path, but fall back to latestOpinionatedReviews with writersOnly when author_association is hidden. GitHub computes writer eligibility server-side, while the existing non-author, latest-state, and exact-head checks stay intact.

Cover the hidden-association writer case and reject a non-writer.
@ttaylorr-oai
ttaylorr-oai requested review from abg-OAI and tnm-oai August 8, 2026 22:30
@ttaylorr-oai
ttaylorr-oai merged commit ef1e7bd into meta Aug 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants