This GitHub Action automatically performs code reviews on pull requests using Google's Gemini AI.
- Create a Google Cloud project and get a Gemini API key
- Add the following secrets to your GitHub repository:
GEMINI_API_KEY: Your Google Gemini API keyGITHUB_TOKEN: Automatically provided by GitHub Actions
The action triggers automatically when:
- A new pull request is opened
- Changes are pushed to an existing pull request
The AI reviewer will:
- Analyze changed files in the PR
- Generate comprehensive code review comments
- Post the review as a comment on the PR
The action is configured to review:
- Code style and best practices
- Potential bugs
- Performance considerations
- Security concerns
- Improvement suggestions