Learning center

Can an AI reviewer learn a rule from a pull request comment?

Some reviewers let a team turn feedback on a comment into a saved preference. Give the reason and the scope of the correction so the reviewer can distinguish an exception from a general rule.

Teach the narrowest useful exception#

Suppose a reviewer repeatedly asks to translate a fixture string whose exact spelling is part of a parser test. Explain that the fixture represents an external file format and name the fixture directory. “Stop asking for translations” could also silence a useful comment on a customer-facing screen.

CodeRabbit calls these saved preferences learnings. Its documentation describes when a learning from an open pull request becomes eligible and how repository or organization scope affects reuse. Inspect the saved wording and scope before relying on it in another repository. Put a permanent compatibility contract in a versioned guide if the team needs to review future edits. How CodeRabbit saves review preferences

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading