gh-pr-render
v0.2.0
Published
Render GitHub PRs with comments for LLM PR reviews
Maintainers
Readme
gh-pr-render — Render GitHub PRs with comments for LLM PR reviews
This is a CLI tool that downloads PR comments and reviews from GitHub and formats them into Markdown for easy consumption by LLMs.
The primary use case is helping LLMs keep track of the conversation on a PR when re-reviewing.
Example output
PR #1: Add type hints and arithmetic operations
Author: danielparks State: open Branch:
feat/type-hints-and-ops→mainURL: https://github.com/danielparks-test/gh-pr-render-fixtures/pull/1Adds type annotations to all functions and implements
powerandmodulooperations.Changed Files
calculator.py(modified) +12 / -4Discussion
Comment by danielparks less than a minute later:
Overall looks good! The type hints are a nice addition.
Diff comment on
calculator.py(outdated, id: 3223656523):+ + +def power(a: float, b: int) -> float: + result = 1.0danielparks less than a minute later:
This loop runs in O(b) time. Python has a built-in
**operator.Review by danielparks less than a minute later:
Please add docstrings to each function.
Diff comment on
calculator.py(resolved, outdated, id: 3223656785):+ + +def power(base: float, exponent: int) -> float:danielparks less than a minute later:
Nice, much cleaner!
Diff comment on
calculator.pyline 23 (id: 3223656851):+ + +def power(base: float, exponent: int) -> float: + return base ** exponent + + +def modulo(dividend: float, divisor: float) -> float:danielparks less than a minute later:
Good choice of parameter names.
danielparks less than a minute later:
Agreed — much clearer than
aandb.
License
Unless otherwise noted, this project is dual-licensed under the Apache 2 and MIT licenses. You may choose to use either.
Contributions
Unless you explicitly state otherwise, any contribution you submit as defined in the Apache 2.0 license shall be dual licensed as above, without any additional terms or conditions.
