Code Monkey home page Code Monkey logo

codereview.gpt's Introduction

codereview.gpt

Review GitHub Pull Requests or GitLab Merge Requests using ChatGPT so that you can pretend do work.

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:

codereview_gpt_demo.mp4

example screenshot

Usage

  • Navigate to a GitHub Pull Request that you want a review for.
  • Click the extension icon
  • If you have not already, the extension will ask you to log in at chat.openai.com
  • You get code review comments from ChatGPT in the popup window

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: Not yet, as of 2022. 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 are considered during the review?

A: The model gets the code changes and the commit messages in a patch format.

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 just 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

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

  • Clone this repository git clone foo && cd foo
  • Install the dependencies npm install
  • Run the build script npm run build
  • Navigate to chrome://extensions
  • Enable Developer Mode
  • Click the 'Load unpacked' button and navigate to the build directory in the project

Supported browsers

Currently, only Chrome is supported

Permissions

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

  • activeTab is used to get the URL or the active tab. This is needed to fetch the get the Pull Request details
  • storage is used to cache the responses from OpenAI

Credits

This project is inspired by clmnin/summarize.site

License

codereview.gpt is distributed under MIT.

codereview.gpt's People

Contributors

kelvinelove avatar krlvi avatar lavawong avatar naxa777 avatar nickveenhof avatar stingrayza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.