Repolode
anc95

anc95/ChatGPT-CodeReview

A GitHub code review bot that uses ChatGPT-style LLMs to comment on pull request diffs, run as a GitHub App, Action, or self-hosted Probot app.

Stars
4,467
Forks
469
Open issues
60
Last commit
3 months ago

What is it?

ChatGPT-CodeReview is a code review bot that sends pull request diffs to an OpenAI-compatible language model and posts the feedback as review comments. It can be installed as a GitHub App, used as a GitHub Action in a workflow file, or self-hosted as a Probot application.

When a pull request is opened, the bot reviews the changed files and posts its comments in the PR timeline or file changes view. After new commits are pushed to the pull request, it reviews the updated files again. Configuration covers the model, output language, custom prompt, temperature, token limits, and include or ignore glob patterns for files, and the Action can also target Azure OpenAI deployments or GitHub Models.

The hosted bot is described as a test deployment with rate limits, so the project recommends deploying your own instance with an OpenAI API key.

Key features

  • 01Reviews pull request diffs with ChatGPT-compatible models and posts comments on the PR.
  • 02Re-reviews changed files automatically after new commits are pushed.
  • 03Runs as a GitHub Action or as a self-hosted Probot app with Docker support.
  • 04Supports custom prompts, output language, and model parameters.
  • 05Filters files with include and ignore glob patterns and a maximum patch length.

Use cases

  • Adding an automated first-pass review to pull requests in a team repository.
  • Running LLM-based review in CI through a GitHub Actions workflow.
  • Hosting a private review bot on your own infrastructure with your own API key.

Quick start

  1. 1

    Install the hosted GitHub App from the README link

  2. 2

    Add the OPENAI_API_KEY variable or secret to your repository

  3. 3

    Add the GitHub Actions workflow file at .github/workflows/cr.yml

Things to know

  • The hosted bot is for testing only, is rate-limited, and may be unstable.
  • You need your own OpenAI-compatible API key or model access to run reviews.
  • Self-hosting requires cloning, configuring a .env file, and running build and process tools.

In collections

Topics

FAQ

What is ChatGPT-CodeReview?
A GitHub code review bot that uses ChatGPT-style LLMs to comment on pull request diffs, run as a GitHub App, Action, or self-hosted Probot app. ChatGPT-CodeReview is a code review bot that sends pull request diffs to an OpenAI-compatible language model and posts the feedback as review comments. It can be installed as a GitHub App, used as a GitHub Action in a workflow file, or self-hosted as a Probot application.
Is ChatGPT-CodeReview free to use? What license does it have?
ChatGPT-CodeReview is open source under the ISC license. Check the license terms before using it in commercial products.
Is ChatGPT-CodeReview still maintained?
Updated within 6 months. The last commit to ChatGPT-CodeReview was on Aug 10, 2026.
What can I use ChatGPT-CodeReview for?
Adding an automated first-pass review to pull requests in a team repository. Running LLM-based review in CI through a GitHub Actions workflow. Hosting a private review bot on your own infrastructure with your own API key.
How do I install ChatGPT-CodeReview?
Install the hosted GitHub App from the README link Add the OPENAI_API_KEY variable or secret to your repository Add the GitHub Actions workflow file at .github/workflows/cr.yml
Where can I get ChatGPT-CodeReview?
The source code and installation instructions are on GitHub: https://github.com/anc95/ChatGPT-CodeReview

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects