Configure CodeRabbit across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing...
Model environments as policy inputs, not separate deployments. Feature-branch YAML supplies config; auto-review controls target eligibility.
references/official-docs.md and re-check any time-sensitive contract before execution.base_branches adds target branches with regex patterns.Treat Git-provider sessions, CodeRabbit web sessions, CLI credentials, and CodeRabbit API keys as separate credentials. Use only an already-approved session or secret-manager reference, never print a secret, and do not place credentials in .coderabbit.yaml, source files, logs, or deliverables.
Inventory branch patterns, risk, merge rules, and config authorities.
Define targets, drafts, labels, ignored authors, and path guidance.
Validate regexes and resolved feature-branch config on synthetic PRs.
Promote only after default, release, exclusion, and rollback cases pass.
Require owner approval before auto-review scope, global override, or release enforcement changes. Keep analysis and drafts local until approval is explicit, and record who approved the action and its scope.
A branch matrix, precedence map, patch, synthetic evidence, and rollback commit. Include source dates, unknowns, and the exact boundary between observed fact and recommendation.
| Condition | Response |
|---|---|
| Current contract is unclear or docs disagree | Stop mutation, cite both sources, and request owner resolution. |
| Required access or approval is missing | Produce a draft and evidence plan only. |
| Validation or pilot behavior differs from expectation | Restore the prior state and retain the failed evidence. |
| Output contains secrets or private code | Stop, quarantine the artifact, redact it, and notify the data owner. |
Add release/.* and test a release-target PR.
Correct base-branch configuration guidance.
references/official-docs.md.