Skip to content

[codex] fix auto-merge when no review is required - #101

Merged
inferjay merged 1 commit into
masterfrom
codex/fix-auto-merge-review-decision
Oct 9, 2026
Merged

inferjay merged 1 commit into
masterfrom
codex/fix-auto-merge-review-decision

Conversation

@inferjay

@inferjay inferjay commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Why

The first live run after #98 created Android downloads PR #100 and passed the offline tests, generated-page guard, and Cloudflare Pages check, but its merge step stopped with The PR requires review before merging.

Root cause: gh pr view --json reviewDecision returns an empty string ("") when no review decision is required. The gate only accepted null or APPROVED, so it misclassified the empty string as a review requirement. gh-pages has no branch protection or active branch rules requiring a review.

Change

Accept "" as the no-review state, while continuing to block REVIEW_REQUIRED and other non-approved decisions. Add a regression test for the exact value seen in the live run.

Verification

  • New regression test failed before the fix and passed after it.
  • python3 -m unittest discover -s tests -v — 33 tests passed.
  • git diff --check — passed.

This PR does not merge #100. Once the fix is approved and merged into master, rerun the update workflow on master to verify the full auto-merge path.

@inferjay
inferjay marked this pull request as ready for review October 9, 2026 06:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T06:40:10.542163Z 4002c83 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@inferjay
inferjay merged commit 042b8b9 into master Oct 9, 2026
1 check passed
@inferjay
inferjay deleted the codex/fix-auto-merge-review-decision branch October 9, 2026 07:55
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.

1 participant