Skip to content

fix: codex pipeline — auto-trigger review and prevent duplicate PRs#10

Merged
FuugaMo merged 3 commits into
masterfrom
fix/codex-pipeline
Mar 12, 2026
Merged

fix: codex pipeline — auto-trigger review and prevent duplicate PRs#10
FuugaMo merged 3 commits into
masterfrom
fix/codex-pipeline

Conversation

@FuugaMo
Copy link
Copy Markdown
Owner

@FuugaMo FuugaMo commented Mar 12, 2026

Changes

  • codex-gate.yml: Add didn't find any, no major issues, hooray to positive keyword list so Codex's typical comment style is recognized
  • codex-trigger.yml (new): When an auto-fix PR is opened, automatically posts @codex Please review this PR. as FuugaMo using FUUGAMO_PAT secret
  • issue-label-on-pr.yml (new): When an auto-fix PR is opened, adds has-pr label to the referenced issue — prevents OpenClaw from opening duplicate PRs

Test plan

@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@FuugaMo
Copy link
Copy Markdown
Owner Author

FuugaMo commented Mar 12, 2026

@codex Please review this PR.

1 similar comment
@FuugaMo
Copy link
Copy Markdown
Owner Author

FuugaMo commented Mar 12, 2026

@codex Please review this PR.

Copy link
Copy Markdown

@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.

Reviewed commit: 13df90cef4

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


jobs:
trigger:
if: contains(github.event.pull_request.labels.*.name, 'auto-fix')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Trigger review only when auto-fix is newly applied

The labeled trigger is currently gated by contains(github.event.pull_request.labels.*.name, 'auto-fix'), so once a PR has auto-fix, adding any other label will post @codex Please review this PR. again and can retrigger duplicate Codex review runs/comments. This should be narrowed to the specific label event (for example, checking that the newly added label is auto-fix) to avoid repeated triggers on unrelated label changes.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/issue-label-on-pr.yml
@FuugaMo
Copy link
Copy Markdown
Owner Author

FuugaMo commented Mar 12, 2026

@codex Please review this PR. If you find no critical issues, reply with "LGTM". If you find critical issues, describe them clearly.

@FuugaMo FuugaMo merged commit 55c09bb into master Mar 12, 2026
1 check passed
Copy link
Copy Markdown

@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.

Reviewed commit: 4a2c22dd48

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

github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const CODEX_USER = 'FuugaMo';
const CODEX_USER = 'chatgpt-codex-connector';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Codex actor ID aligned with merge-check workflow

Updating CODEX_USER here to chatgpt-codex-connector makes codex-gate.yml accept approvals from that account, but .github/workflows/auto-merge.yml still excludes only FuugaMo when checking for a human approver (CODEX_USER = 'FuugaMo' and user !== CODEX_USER). In this state, a Codex approval from chatgpt-codex-connector can satisfy both the Codex status and the “human approval” condition, allowing auto-merge without any real human reviewer.

Useful? React with 👍 / 👎.

@NogaUwU NogaUwU deleted the fix/codex-pipeline branch March 15, 2026 05:03
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