This is a helper package for automating code reviews. To run the script you need to create a .env file based on the .env.example file and add values for the variables:
- GITHUB_TOKEN - Here you can find information how to generate it
- OPENAI_API_KEY - If you don't have it, sign up for an API key at OpenAI
- OPENAI_API_MODEL - All available models and prices are here
- GEMINI_API_KEY - If you don't have it, you can generate it here
- GEMINI_API_MODEL - All available models are here
npm run cli review <pr_url> // this will use gemini by default
npm run cli review <pr_url> -t gptExample:
npm run cli review https://github.com/petproject-dev/code_reviewer/pull/1