Skip to content

Update review workflows - #7

Closed
ColinKOB wants to merge 15 commits into
mainfrom
add-claude-review
Closed

ColinKOB wants to merge 15 commits into
mainfrom
add-claude-review

Conversation

@ColinKOB

Copy link
Copy Markdown
Owner

Brings the review workflows up to the current templates. Updated by review-setup. Merge once every check and the Codex bot's review pass.

Colin O'Brien and others added 11 commits October 12, 2026 12:31
…tGPT, and Zero for Mac moves itself to Applications

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deletes divider banners, commented-out code, and comments that only
restate the next line. Every comment that records a reason, date,
incident, ruling, or invariant stays. Comment-only change: Python
syntax trees match main.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Add Claude review workflow

Reviews each non-draft PR with Claude Code using the subscription token and fails the check when it finds blocking issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Temporarily show full review output

* Hide full review output again

* Use a marked summary comment and paginate comment lists

Addresses review feedback: --edit-last could overwrite another workflow's comment, and unpaginated listing missed comments past the first 30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Claude returns the summary in its structured output, and a plain step creates or updates one marked comment. The previous version asked Claude to post it, which a headless run could not do reliably.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: af973a9a-d3cf-4a65-90ce-d44990f24018
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T15:36:10.506275Z eefd3b1 PR opened
ℹ️ 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.

Comment thread .github/workflows/codex-gate.yml Outdated
| { grep -o 'datetime="[^"]*"' || true; } | tail -n 1 | cut -d'"' -f2)
rebased_at=$(gh api --paginate "repos/$REPO/issues/$PR/events" \
--jq '.[] | select(.event == "base_ref_changed") | .created_at' | tail -n 1)
if [ -n "$rebased_at" ] && [[ ! "$reviewed_at" > "$rebased_at" ]]; then state='{}'; fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[minor] This check compares reviewed_at and rebased_at as plain strings. That only works if the bot's datetime="..." value is in the same ISO-8601 UTC format as the GitHub API's created_at (2026-10-17T12:00:00Z). If the bot writes a different format or timezone, the comparison gives the wrong answer. A review that is newer than the base change could then be thrown away, or an older one kept. Parse both values with date -d ... +%s and compare the numbers. Also check that the attribute really exists in the bot's comment body. If it is missing, reviewed_at is empty and every PR with a base change stays pending forever.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Claude review: APPROVE

No blocking issues. The two timestamp concerns in the codex-gate.yml retarget logic were already raised in earlier review comments, so I did not repeat them. I read the diff and the workflow file but did not run the workflow.

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

Copy link
Copy Markdown

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: eefd3b12bb

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

# The bot writes when the review finished into its summary table; the comment's own edit time can move later.
reviewed_at=$(gh api --paginate "repos/$REPO/issues/$PR/comments" \
--jq ".[] | select(.user.login == \"$bot\") | select(.body | contains(\"codex-review-state:v1\")) | .body" \
| { grep -o 'datetime="[^"]*"' || true; } | tail -n 1 | cut -d'"' -f2)

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 Compare the base change against the review start

When a PR is retargeted while a Codex review is already running, this selects the review's completion timestamp, which will be later than the base_ref_changed event even though the review analyzed the old base. The subsequent comparison therefore preserves a potentially successful stale result and lets the gate pass without reviewing the new diff; use the review's start time or record the reviewed base revision instead.

Useful? React with 👍 / 👎.

@ColinKOB ColinKOB closed this Nov 22, 2026
@ColinKOB
ColinKOB deleted the add-claude-review branch November 22, 2026 16:08
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