fix: remove codex/lgtm gate, merge on human approve only#13
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8be9f9a8a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const humanApproved = [...latest.entries()].some( | ||
| ([user, state]) => user !== CODEX_USER && state === 'APPROVED' | ||
| ([, state]) => state === 'APPROVED' |
There was a problem hiding this comment.
Require non-automated approval before auto-merge
This predicate now treats any latest APPROVED review as "human approval", so an automated reviewer can satisfy the gate and merge an auto-fix PR with no human reviewer involved. In this repo, .github/workflows/codex-gate.yml explicitly handles automated Codex pull_request_review events, so this path is realistic: once that bot submits APPROVED, this workflow will merge immediately. Please restore an explicit reviewer-identity filter (or bot check) so only real human approvals count.
Useful? React with 👍 / 👎.
Simplify auto-merge: only require human Approve. Codex review is still triggered automatically as a reference, but no longer blocks the merge pipeline.