Skip to content

ci: trigger CodeRabbit review on PR un-draft#1558

Merged
bmadcode merged 1 commit intomainfrom
ci/coderabbit-ready-review
Feb 6, 2026
Merged

ci: trigger CodeRabbit review on PR un-draft#1558
bmadcode merged 1 commit intomainfrom
ci/coderabbit-ready-review

Conversation

@alexeyv
Copy link
Collaborator

@alexeyv alexeyv commented Feb 6, 2026

Summary

  • Adds a GitHub Actions workflow that automatically triggers CodeRabbit review when a draft PR is marked as ready for review
  • Works around a known CodeRabbit limitation where the ready_for_review webhook event is not reliably handled

Context

CodeRabbit auto-review triggers on PR creation (opened event) but often misses the ready_for_review event fired when a draft PR is un-drafted. This workflow listens for that event and posts @coderabbitai review as a comment, ensuring the review happens automatically.

Test plan

  • Create a draft PR, then mark it as ready for review
  • Verify the workflow runs and posts the @coderabbitai review comment
  • Verify CodeRabbit then performs the review automatically

CodeRabbit doesn't reliably handle the ready_for_review webhook
event, so draft PRs that are marked ready never get auto-reviewed.
This workflow posts @coderabbitai review when a PR transitions
from draft to ready, working around the limitation.
@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

📝 Walkthrough

Walkthrough

A GitHub Actions workflow is added that automatically posts a comment requesting CodeRabbit review when pull requests are marked as ready for review. The workflow uses the GitHub API to interact with pull request comments.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/coderabbit-review.yaml
Adds new workflow that automatically posts a "@coderabbitai review" comment on PRs ready for review using actions/github-script to call GitHub API.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • bmadcode
  • pbean
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'ci: trigger CodeRabbit review on PR un-draft' accurately summarizes the main change: adding a GitHub Actions workflow that triggers CodeRabbit review when a draft PR is marked as ready for review.
Description check ✅ Passed The description clearly explains the workflow's purpose, the specific problem it addresses (CodeRabbit missing ready_for_review events), and includes a concrete test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/coderabbit-ready-review

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 and usage tips.

@bmadcode bmadcode merged commit d027811 into main Feb 6, 2026
7 checks passed
dickymoore pushed a commit to dickymoore/BMAD-METHOD that referenced this pull request Feb 6, 2026
CodeRabbit doesn't reliably handle the ready_for_review webhook
event, so draft PRs that are marked ready never get auto-reviewed.
This workflow posts @coderabbitai review when a PR transitions
from draft to ready, working around the limitation.
@alexeyv alexeyv deleted the ci/coderabbit-ready-review branch February 22, 2026 08:28
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.

2 participants