Project

prreview

0.0
There's a lot of open issues
A long-lived project that still receives updates
PrReview collects PR data from GitHub (description, commits, comments, linked issues, and code changes) and formats it as XML. Paste this XML into any LLM like ChatGPT or Claude to get helpful code reviews.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.2
~> 2.0
~> 1.18
~> 10.0
 Project Readme

How to use

Install:

gem install prreview

Run this command with a PR URL:

prreview -u https://github.com/owner/repo/pull/123

Or use more options:

prreview --help
prreview --url https://github.com/owner/repo/pull/123 --all-content --prompt "Are there any security issues?"

Now, just paste the PR details into ChatGPT, Claude, or any LLM for review.

What it does

PrReview collects key details about a PR, including:

  • PR description, commits, and comments
  • Linked issues
  • Changed files and their content
  • The full PR diff

It then copies everything to your clipboard.

Why prompt

Advantages over LLM integrations:

  • You're free to use the LLM of your choice
  • You can continue the conversation with the LLM right in the chat, asking to pay attention to a specific part of the PR
  • The gem is simpler

However, in the future we might add some optional integrations.

Tips

  • A well-written PR and linked issue description make a big difference — and are good practice anyway.
  • Run prreview after you've thoroughly reviewed the PR. It works best when you understand the changes well.
  • Don't hesitate to try different LLMs or refresh the response to see if something new comes up.
  • Use --all-content and other extra options — they can significantly improve results for some PRs.
  • After the LLM responds, ask "Anything else?" to potentially uncover more issues.

Requirements

  • Ruby
  • GITHUB_TOKEN environment variable

License

MIT License