How the guides fit together
The repair and merge guides each set up one automation that selects pull requests by their conditions: CodeRabbitâs Merge risk is Minimal or Low and Review depth is Light. The merge automation also checks the pull requestâs review state if you require a personâs approval.- The reminder automation nudges the author and reviewers in Slack while a pull request waits for review. You can narrow it with the same conditions.
- The Auto-fix automation pushes fixes when a CI check fails or CodeRabbit posts findings.
- The merge automation merges once your conditions are met and the required checks pass. If you also require a personâs approval, it waits for a person to approve the latest commit.
The automations need no label to select pull requests. The
triage-trial label used in the guides is a temporary guardrail for setup and experiments: while you try the automations, they only remind, repair, or merge pull requests someone deliberately opted in, so nothing you didnât mean to touch gets merged. Once their activity looks right, you can remove the label filter, and the automations act on every matching pull request.Before you start
|Set up one repository end to end
- Optional: To try the automations only on pull requests you opt in, create the
triage-triallabel in GitHub, then set the label filter in each automation you create in steps 4 to 6. - Optional: To tell CodeRabbit what counts as low risk for your team, describe it in Merge Risk Instructions.
- Set up the branch rule: required status checks, plus a personâs approval if you want one. Reminders go out only while GitHub reports Review required, so they need a required approval.
- Create the reminder automation, with the optional low-risk conditions.
- Create the Auto-fix automation, with the optional low-risk conditions.
- Create the merge automation with if PR requires fixes set to Do not auto fix, because the Auto-fix automation already repairs.
- Test with one small, contained pull request: request a review, add the
triage-triallabel if you set the label filter, and once CodeRabbit has reviewed its latest commit, check that the Merge Risk line in CodeRabbitâs summary comment shows Minimal or Low and its Triage card shows Light review. Then follow the âTest itâ sections for reminders, repairs, and merging. - If you set the label filter, remove it once View activity shows the runs you expect, to widen the scope of each automation: reminders, repairs, and merging.
Whatâs next
Remind reviewers in Slack
Nudge the author and reviewers of a pull request while it waits for review.
Repair failing pull requests automatically
Have the Coding Agent fix failed checks and CodeRabbit findings on low-risk pull requests.
Merge low-risk pull requests automatically
Merge low-risk pull requests once your conditions are met and the required checks pass.