Skip to content

Conversation

@ammario
Copy link
Member

@ammario ammario commented Oct 7, 2025

This PR adds a CI check that blocks merging when the chatgpt-codex-connector[bot] has unresolved comments on a PR.

Changes

  • New CI job: check-codex-comments that runs on every PR
  • Script: scripts/check_codex_comments.sh that detects Codex bot comments
  • Integration: Added Codex check to wait_pr_checks.sh loop

How it works

  1. The CI job runs on every pull request
  2. It checks for any comments from chatgpt-codex-connector[bot]
  3. If comments exist, the check fails and blocks merge
  4. The wait_pr_checks.sh script also checks before declaring a PR ready

Example

On PR #74, the bot left a comment about the macOS signing certificate. With this change, that PR would be blocked from merging until the comment is addressed or resolved.

Generated with cmux

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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 👍.

- Add check-codex-comments CI job that fails if Codex bot has comments
- Create check_codex_comments.sh script to detect unresolved comments
- Integrate Codex check into wait_pr_checks.sh loop
- Ensures PRs with Codex feedback are reviewed before merging

_Generated with `cmux`_
- Use GraphQL to query reviewThreads and check isResolved status
- Handle different bot login names (REST API vs GraphQL)
- Only fail on unresolved comments, not resolved ones
- Addresses Codex feedback about false positives on resolved comments

_Generated with `cmux`_
@ammario
Copy link
Member Author

ammario commented Oct 7, 2025

Fixed in the latest commit - now using GraphQL to check isResolved status on review threads. ✅

@ammario ammario merged commit 5006273 into main Oct 7, 2025
10 of 12 checks passed
@ammario ammario deleted the ci-codex branch October 7, 2025 18:37
ammario added a commit that referenced this pull request Oct 7, 2025
This PR adds a CI check that blocks merging when the
`chatgpt-codex-connector[bot]` has unresolved comments on a PR.

## Changes

- **New CI job**: `check-codex-comments` that runs on every PR
- **Script**: `scripts/check_codex_comments.sh` that detects Codex bot
comments
- **Integration**: Added Codex check to `wait_pr_checks.sh` loop

## How it works

1. The CI job runs on every pull request
2. It checks for any comments from `chatgpt-codex-connector[bot]`
3. If comments exist, the check fails and blocks merge
4. The `wait_pr_checks.sh` script also checks before declaring a PR
ready

## Example

On PR #74, the bot left a comment about the macOS signing certificate.
With this change, that PR would be blocked from merging until the
comment is addressed or resolved.

_Generated with `cmux`_
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