Thank you for your interest in contributing to Presubmit AI Reviewer!
- Fork the repository
- Clone your fork locally
- Install dependencies with
pnpm install - Create a new branch for your feature/fix:
git checkout -b feature-name
- Node.js (LTS version recommended) + Typescript
- Github personal access token
- LLM API key from OpenAI, Anthropic or GoogleAI
- (recommended) pnpm package manager
- Make your changes in a feature branch
- Commit your changes using conventional commits:
feat: add new featurefix: resolve bugdocs: update documentationtest: add testsrefactor: improve code structure
- Open Pull Request against main repo
-
Copy the
.env.examplefile to.env:cp .env.example .env
-
Configure your environment variables in
.env:# Required: Choose your AI provider AI_PROVIDER=anthropic # or openai # Required: Set your API key and model based on the chosen provider LLM_API_KEY=... LLM_MODEL=... # Required: Github personal access token GITHUB_TOKEN=...
And uncomment one of the events that you want to test:
pull_requestorpull_request_review_comment -
Run
pnpm devto test the updated reviewer in the Pull Request specied in .env
- Update the README.md with details of significant changes if applicable
- Ensure your PR description clearly describes the problem and solution
- Link any related issues using GitHub keywords (e.g., "Fixes #123")
- Make sure all checks pass on your PR
- Request review from maintainers
- Open an issue for questions
- Join our community discussions
- Reach out on X/Twitter
By contributing to AI PR Reviewer, you agree that your contributions will be licensed under the same license as the project.
Thank you for contributing to make AI PR Reviewer better! 🚀