GitHub Action for AI-powered code review
Top 40.3% on sourcepulse
This GitHub Action automates code reviews for pull requests using OpenAI's GPT-4 API. It targets developers and teams seeking to enhance code quality and streamline the review process by providing intelligent, AI-generated feedback directly within GitHub workflows.
How It Works
The action checks out the repository, retrieves the pull request diff, and filters out files matching specified exclude patterns. It then sends code chunks to the OpenAI API for analysis. The AI's feedback is parsed and posted as comments on the pull request, offering suggestions for improvement.
Quick Start & Requirements
.github/workflows/main.yml
file.OPENAI_API_KEY
GitHub Secret).GITHUB_TOKEN
(provided by GitHub Actions).OPENAI_API_MODEL
and exclude
patterns as needed.Highlighted Details
Maintenance & Community
Contributions are welcome via issues and pull requests. The README suggests that maintainers handle the build process (yarn build & yarn package
).
Licensing & Compatibility
Limitations & Caveats
The action relies on the availability and performance of the OpenAI GPT-4 API. The README implies that users should not directly build or package the action themselves, suggesting a potential reliance on maintainer-provided releases.
11 months ago
1 week