Pull-Assist is a Chrome extension that uses ChatGPT to provide very basic code reviews on GitHub pull requests. It was mostly an excuse for me to play with GenAI but might be a useful tool for developers in their day-to-day work - whether that's helping someone review pull requests or just someone looking for quasi-peer review when working on their own.
- Clone this repository:
git clone https://github.com/simons/pull-assist.git cd pull-assist
- Install dependencies:
pnpm install
- Build the extension:
make
- Load the extension into Chrome:
- Open Chrome and navigate to
chrome://extensions
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
dist
folder in the project directory
Before using Pull-Assist, you need to configure it with your GitHub Personal Access Token (PAT) and OpenAI API key:
- Click on the Pull-Assist extension icon in Chrome
- Select "Options"
- Enter your GitHub PAT and OpenAI API key
- Click "Save"
To create a GitHub PAT, follow the instructions here.
To get an OpenAI API key, sign up at OpenAI and create a new API key.
- Navigate to a GitHub pull request
- Click the "Analyse PR" button that appears in the PR header
- After a shortish wait, the suggestions should appear inline with the code changes (they're collapsed by default, click to expand)
This project is licensed under the MIT License - see the LICENSE file for details.
Icon attribution: Assistance icons created by Freepik - Flaticon