Skip to content

fix(ci): skip Claude reviews on draft PRs - #1

Merged
tomcasaburi merged 3 commits into
masterfrom
codex/fix/skip-claude-draft-prs
Nov 18, 2026
Merged

tomcasaburi merged 3 commits into
masterfrom
codex/fix/skip-claude-draft-prs

Conversation

@tomcasaburi

@tomcasaburi tomcasaburi commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Add a job-level draft check so GitHub skips the Claude review job before it starts a runner or uses the subscription. The existing ready-for-review trigger starts the job once the PR is marked ready. The existing same-repository and human-actor checks still apply.

Verified with actionlint and GitHub's expression evaluator for draft, ready, fork, and bot events.

Summary by CodeRabbit

  • Chores
    • Automated reviews now skip draft pull requests, as well as fork pull requests and bot-authored requests.
    • Review instructions now require agents to run sequentially, check for existing review comments before posting, and apply the same guidance to AGENTS.md and CLAUDE.md.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T12:25:04.021271Z ab6e821 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.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7aa6785c-d6ca-4bb1-a707-c1fcfefd3840
Commits

Reviewing files that changed from the base of the PR and between ab6e821 and 905eb6a.

Files selected for processing: 1

  • .github/workflows/claude-code-review.yml

No actionable comments were generated in the recent review.

Walkthrough

The Claude code review workflow now skips draft pull requests. Its appended prompt also updates agent execution, review, comment, and repository instruction-file rules.

Changes: Claude review workflow

Layer / File(s) Summary
Review execution rules
.github/workflows/claude-code-review.yml
The job condition excludes draft pull requests while retaining fork and bot exclusions. The appended prompt adds agent sequencing, review stopping and issue-selection rules, checks for existing Claude comments, and treats AGENTS.md like CLAUDE.md.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · previous review ab6e8

This change makes the automated review workflow skip draft pull requests and updates its review instructions. It has no production impact and is easy to revert, so there is no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(ci): skip Claude reviews on draft PRs" matches the main change. The workflow's review job now skips draft pull requests, in addition to forks and bot actors. The title is specific and u…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(ci): skip Claude reviews on draft PRs" matches the main change. The workflow's review job now skips draft pull requests, in addition to forks and bot actors. The title is specific and uses a conventional commit prefix. The summary also mentions prompt changes that the title does not cover, which is expected for a short title.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 409d7338-404c-4475-8efe-2e3aac868114
Commits

Reviewing files that changed from the base of the PR and between b552c61 and ab6e821.

Files selected for processing: 1

  • .github/workflows/claude-code-review.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@tomcasaburi
tomcasaburi merged commit adb02ca into master Nov 18, 2026
2 checks passed
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