Skip to content

Use ChatGPT to conduct code reviews on your pull requests.

License

Notifications You must be signed in to change notification settings

gear273/gpt-code-reviewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt-code-reviewer

gpt-code-reviewer is a Python script that assists you with code reviews using OpenAI's GPT-3.5 language model. It interacts with users through a command line interface and GitHub API to retrieve code for review.

Requirements

The script requires access to a GitHub account and an OpenAI API key.

Set environment variables:

GITHUB_TOKEN - optional for authentication

OPENAI_API_KEY - required to access gpt

Usage

Clone the repository and navigate to its directory in your terminal. Then, run the following command:

cp config.yaml.example config.yaml

Edit config.yaml to suit your needs.

Run this command to start the application.

python3 main.py

The script will prompt you to select a repository and pull request to review. You will then be prompted to enter 'r' to review the code, 'q' to quit, 'h' for help, and 'n' to review a different pull request.

The language model will provide suggestions and feedback based on your input, and you can continue to review the code until you are finished.

Transcripts of the conversation will be saved as a markdown file for reference.

SudoLang

You can run a SudoLang version of this at https://github.com/rjmacarthy/pseudo

License

This script is licensed under the MIT License. See the LICENSE file for details.

About

Use ChatGPT to conduct code reviews on your pull requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%