Discover and explore top open-source AI tools and projects—updated daily.
truongnh1992AI-powered code review for pull requests
Top 99.8% on SourcePulse
This GitHub Action automates pull request code reviews using Google's Gemini AI. It targets developers seeking to enhance code quality and consistency by providing AI-generated feedback directly within PRs, streamlining the review process.
How It Works
The action analyzes code modifications in a pull request, optionally filtering out specified file types. It then sends relevant code segments to a chosen Gemini AI model for analysis. The AI generates suggestions and comments, which the action posts back as review comments on the GitHub pull request.
Quick Start & Requirements
GEMINI_API_KEY in your repository..github/workflows/code-review.yml file with the provided workflow configuration./gemini-review on a pull request.
actions/checkout@v3, gh api, jq.gemini-2.5-flash; gemini-2.5-pro is available.Highlighted Details
*.md, *.txt, package-lock.json).gemini-2.5-flash (default, fast) and gemini-2.5-pro models.Maintenance & Community
No specific details on contributors, sponsorships, or community channels were found in the provided README.
Licensing & Compatibility
Licensed under the MIT License. This license is permissive and generally compatible with commercial use and closed-source projects.
Limitations & Caveats
Requires an external Gemini API key, which may incur costs depending on usage. The effectiveness of reviews is dependent on the Gemini model's capabilities and the quality of the prompts implicitly used by the action. Code analysis is performed on chunks of code, which might miss broader architectural issues.
7 months ago
1 day
The-PR-Agent