ci: run the Codex review only when the codex-review label is added - #78
Closed
maciejwitowski wants to merge 1 commit into
Closed
ci: run the Codex review only when the codex-review label is added#78maciejwitowski wants to merge 1 commit into
maciejwitowski wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lq4e74miLyjH8aAmt2pH3w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Codex reviewer ran automatically on every push to every PR. Across the org that added up to 785 runs in August alone (median ~$0.30 per run on gpt-5.6-sol at the measured token volumes), and the OpenAI API key behind it has now been removed over cost — so today every push simply fails this check with "no credits remaining".
What changes
The review becomes user-triggered, on click:
pull_request: [labeled], gated on thecodex-reviewlabel.disarmjob removes the label when the review finishes, so the label works as a re-armable button: add it again later for a fresh review of the current head.The
codex-reviewlabel has been created in this repo.Note
Until a funded
OPENAI_API_KEYsecret is restored, clicking the label will still produce a failed run — but nothing triggers automatically anymore, so PRs stop collecting a red ✗ on every push in the meantime.Repo-specific: the draft guard is replaced by the label guard — labeling a draft PR is an explicit ask, so it runs the review.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Lq4e74miLyjH8aAmt2pH3w