Skip to main content
Set up three PR Automations so that low-risk pull requests get Slack reminders while they wait for review, automatic repairs when a check fails, and a merge once your conditions are met.

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

  1. Optional: To try the automations only on pull requests you opt in, create the triage-trial label in GitHub, then set the label filter in each automation you create in steps 4 to 6.
  2. Optional: To tell CodeRabbit what counts as low risk for your team, describe it in Merge Risk Instructions.
  3. 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.
  4. Create the reminder automation, with the optional low-risk conditions.
  5. Create the Auto-fix automation, with the optional low-risk conditions.
  6. Create the merge automation with if PR requires fixes set to Do not auto fix, because the Auto-fix automation already repairs.
  7. Test with one small, contained pull request: request a review, add the triage-trial label 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.
  8. 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.
Each guide also works on its own.

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.