| name | coderabbit-multi-env-setup |
| description | Configure CodeRabbit review behavior per branch and environment using path instructions and base branches.
Use when setting different review profiles per branch, configuring stricter reviews for release branches,
or customizing CodeRabbit behavior across dev/staging/prod workflows.
Trigger with phrases like "coderabbit environments", "coderabbit staging",
"coderabbit per-branch config", "coderabbit release review", "coderabbit environment setup".
|
| allowed-tools | Read, Write, Edit, Bash(gh:*), Bash(git:*) |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","coderabbit","environments","branching"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
CodeRabbit Multi-Environment Setup
Overview
Configure CodeRabbit review behavior based on branch targets and environments. CodeRabbit reads .coderabbit.yaml from the PR's base branch, allowing different review configurations per branch. This enables stricter reviews for production branches, relaxed reviews for development, and custom instructions per environment.
Prerequisites
- CodeRabbit GitHub App installed on repository
- Branch strategy defined (e.g., GitFlow, trunk-based, GitHub Flow)
.coderabbit.yaml committed to each relevant branch
How Branch-Based Config Works
Developer opens PR: feature/auth → develop
CodeRabbit reads: .coderabbit.yaml from develop branch
Profile: "chill" (development, quick iteration)
Developer opens PR: develop → main
CodeRabbit reads: .coderabbit.yaml from main branch
Profile: "assertive" (production, thorough review)
Developer opens PR: hotfix/fix → release/v2.1
CodeRabbit reads: .coderabbit.yaml from release/v2.1 branch
Profile: "assertive" + security-focused instructions
Instructions
Step 1: Configure Development Branch (Relaxed)
language: "en-US"
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
sequence_diagrams: false
auto_review:
enabled: true
drafts: false
base_branches:
- develop
ignore_title_keywords:
- "WIP"
- "DO NOT MERGE"