sturdy-dev / codereview.gpt

Reviews your Pull/Merge Requests using ChatGPT
MIT License
529 stars 63 forks source link
ai chatgpt chrome-extension github gitlab

codereview.gpt

Review GitHub Pull Requests or GitLab Merge Requests using ChatGPT.

GitHub Chrome Web Store

🔍 Overview💻 Usage📖 FAQ🔧 Installation

Overview

This is a Chrome extension which reviews Pull Requests for you using ChatGPT.

Here's an example output for this Pull Request:

https://user-images.githubusercontent.com/4030927/207372123-46d7ee8c-bd3e-4272-8ccb-4639f9f71458.mp4

example screenshot

Usage

NB: Running the review multiple times often produces different feedback, so if you are dealing with a larger PR, it might be a good idea to do that to get the most out of it.

FAQ

Q: Are the reviews 100% trustworthy?

A: No. This tool can help you spot bugs, but as with anything, use your judgement. Sometimes it hallucinates things that sound plausible but are false — in this case, re-run the review.

Q: What aspects of the Pull Request or Merge Request are considered during the review?

A: The model gets the code changes and the commit messages in a patch format. Additionally it pulls in the description of the MR/PR.

Q: Does the extension post comments on the Pull Request page?

A: No. If you want any of the feedback as PR comments, you can copy paste the output.

Q: Is this a GPT wrapper?

A: Yes, but

Q: Why would you want this?

A: Plenty of reasons! You can:

- pretend to work while playing games instead
- appear smart to your colleagues
- enable a future skynet
- actually catch some bugs you missed
- learn a thing or 2 on best practices

Installation

You can install codereview.gpt from the Chrome Web Store or build it from source locally.

From the Chrome Web Store (recommended)

Go to the extension page at the Chrome Web Store and add codereview.gpt.

From source

Supported browsers

only Chrome is supported

Permissions

This is a list of permissions the extension uses with the respective reason.

Credits

This project is inspired by clmnin/summarize.site

License

codereview.gpt is distributed under the MIT license.