This tool automates the process of reviewing code changes in a GitHub pull request. It integrates with various services to provide AI-based code review, code quality analysis, and security checks.
- AI Code Review: Uses AI to review code changes and provide suggestions for improvements.
- Code Quality Analysis: Analyzes the code quality using tools like Pylint.
- Security Checks: Performs security checks on the codebase.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a
.env
file in the root directory and add the following environment variables:GITHUB_TOKEN=<your-github-token> REPO_NAME=<repository-name> PR_NUMBER=<pull-request-number> ANTHROPIC_API_KEY=<your-anthropic-api-key>
-
Install the required dependencies:
pip install -r requirements.txt
Run the main script to start the code review process: