AI Code Review Bot automates code analysis, detects potential issues, enforces best practices, and optimizes performance in your repository.
- Automated code reviews using AI
- Detection of common coding issues
- Performance optimization suggestions
- Runs automatically on new commits and pull requests
├── .github/workflows/
│ ├── ai-code-reviewer.yaml # GitHub Actions workflow for automated code review
├── test_example.py # Example test file
├── README.md
Ensure GitHub Actions is enabled in your repository to allow the workflow to run.
Before running the bot, you need to set the following GitHub repository secrets:
TOKENGITHUB
– Your GitHub personal access token (PAT) with repository access.OPENAI_API_KEY
– Your OpenAI API key for AI-powered code review.
- Go to your GitHub repository.
- Navigate to Settings > Secrets and variables > Actions.
- Click New repository secret and add:
TOKENGITHUB
with your GitHub PAT.OPENAI_API_KEY
with your OpenAI API key.
- Push a new commit or create a pull request.
- The bot will automatically review the code and leave comments on detected issues.