Skip to content

ci(coderabbit): review pull requests against dev automatically - #2091

Merged
MODSetter merged 1 commit into
devfrom
ci/coderabbit-review-dev
Sep 30, 2026
Merged

MODSetter merged 1 commit into
devfrom
ci/coderabbit-review-dev

Conversation

@MODSetter

@MODSetter MODSetter commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

What

Adds .coderabbit.yaml at the repo root so CodeRabbit auto-reviews pull requests whose base branch is dev:

reviews:
  auto_review:
    base_branches:
      - "^dev$"
  • Every other setting stays at CodeRabbit's defaults, which is what the repo runs on today, so nothing else changes.
  • main is the default branch, so its pull requests are still reviewed.
  • The entries are regexes, so the pattern is anchored: develop or feat/dev-tools do not match.

Why

With no config file, CodeRabbit uses its defaults, which auto-review only pull requests against the default branch. Pull requests merge through dev (CONTRIBUTING.md), so each one was skipped with "Auto reviews are disabled on base/target branches other than the default branch", as on #2090.

CodeRabbit reads this file from the pull request's head branch, not from dev. Once this merges, branches cut from dev are reviewed automatically. Branches cut earlier stay skipped until they merge dev in; on those, comment @coderabbitai review for a single review.

Fixes #

How to test

  • This pull request carries the file, so CodeRabbit should review it on its own instead of posting "Review skipped".

  • The file validates against CodeRabbit's published schema:

    uv run --no-project --with pyyaml --with jsonschema python -c "import json, urllib.request, yaml, jsonschema; schema = json.load(urllib.request.urlopen('https://coderabbit.ai/integrations/schema.v2.json')); jsonschema.validate(yaml.safe_load(open('.coderabbit.yaml')), schema); print('valid')"
  • Draft pull requests stay skipped by default, so test with one that is ready for review.

🤖 Generated with Claude Code

High-level PR Summary

This PR adds a CodeRabbit configuration file to enable automatic code reviews for pull requests targeting the dev branch. Previously, only PRs against the default main branch were auto-reviewed, but since the project's workflow merges changes through dev first (as documented in CONTRIBUTING.md), this meant most PRs were being skipped. The configuration uses a regex pattern to specifically match the dev branch while preserving all other CodeRabbit default settings.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 .coderabbit.yaml

Need help? Join our Discord

Summary by CodeRabbit

  • Chores
    • Updated automated code review configuration for the dev branch.

With no config file, CodeRabbit used its defaults, which auto-review
only pull requests against the default branch, main. Pull requests
merge through dev, so every one was skipped.

CodeRabbit reads this file from each pull request's head branch, so
branches cut from dev before this lands still need
`@coderabbitai review`.

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

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
surf-sense-frontend Ready Ready Preview Sep 30, 2026 10:23pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: MODSetter/SurfSense/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f3c8508e-84c1-457e-9c03-b87e3e50f9c6

📥 Commits

Reviewing files that changed from the base of the PR and between 3d94e85 and 5b79c4b.

📒 Files selected for processing (1)
  • .coderabbit.yaml
 ________________________________________
< My other transformer is Optimus Prime. >
 ----------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@MODSetter
MODSetter merged commit c6c84d2 into dev Sep 30, 2026
23 of 25 checks passed

This branch was successfully deployed

1 active deployment
Preview — 5b79c4be Deployed Sep 30, 2026 by vercel[bot]
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