Free Open Source AI Code Reviewer
I started exploring AI code reviewing options for Codú recently since I rarely have my code reviewed and am prone to making mistakes.
I had a few choices:
- Build my own
- Use an open-source GitHub action
- Pay for a service
The option I chose was 3-ish.
I found CodeRabbit, which looked like a comprehensive solution and would help catch some issues before I merge them.
And then I got an even better surprise...
It's FREE for open-source! Or $12 a month for private repositories (which is still a great value, in my opinion).
How to setup
The setup was ridiculously easy on GitHub.
- Sign-in to CodeRabbit with GitHub.
- Follow the on-screen prompts to connect it to the repositories you want reviews on.
- Open a PR and watch the magic happen! 🪄
What you get
Pull Request Summary: When a pull request is created or updated, the bot generates a summary. It includes both a summary and a detailed walkthrough of changes in each file.
Code Review Feedback: The bot posts comments on the lines of code that have changed. It offers feedback and suggestions in a format that can be copied or applied with a single click.
Chat with CodeRabbit: You can talk with CodeRabbit! Ask questions, generate code, or get feedback within the review context. The bot learns from these interactions, improving its responses over time.
Issue Validation: Confirm your changes against any linked issues in GitHub or GitLab. And as a cool bonus, it also identifies other issues that might harm the proposed changes.
Pull Request Review Status: Get pull request review statuses! This shows which commit IDs were reviewed and which files were examined (or ignored). You'll then get a summary of the feedback and comments for each review.
So far, from a brief test drive, I'm impressed, but I'll check back in a few weeks with a full review of what I like and dislike about CodeRabbit!
Until then, see you later! ✌️