Skip to content

A simple Ruby program that gathers details about a PR and copies them to your clipboard for easy pasting into an LLM like ChatGPT or Claude for review.

License

Notifications You must be signed in to change notification settings

evmorov/prreview

Repository files navigation

Gem Version

How to use

Install:

gem install prreview

Run this command with a PR URL:

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

Or use more options:

prreview --help
prreview 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, to potentially uncover more issues:
    • Ask "Anything else?".
    • If the response has a list of problems, try responding to each of them, giving the LLM more context.

Requirements

License

MIT License

About

A simple Ruby program that gathers details about a PR and copies them to your clipboard for easy pasting into an LLM like ChatGPT or Claude for review.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •