Skip to content

petproject-dev/code_reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Code Review

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

How to run

npm run cli review <pr_url> // this will use gemini by default
npm run cli review <pr_url> -t gpt

Example:

npm run cli review https://github.com/petproject-dev/code_reviewer/pull/1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published