How zizamele03/github-pr-reviewer works
This is a command-line GitHub pull-request reviewer. A user selects one PR or all open PRs; the orchestrator obtains PR metadata and diffs, requests an LLM review (with documented statistical fallback), and saves a Markdown report. GitHub retrieval and review generation are separate domain stages; configuration is the key internal support layer. The README documents fallback behavior and output details beyond the sampled implementation excerpts.
Main entry points: main.py PR orchestrator · github_client.py Open PR listing · llm_reviewer.py Review generation · config.py Configuration
Components 10
Review orchestration
- PR orchestrator
src/main.py - Configuration
src/config.py
GitHub retrieval
- Open PR listing
src/github_client.py - PR details
src/github_client.py - Diff retrieval
src/github_client.py - GitHub API
Review and output
- Review generation
src/llm_reviewer.py - HuggingFace inference
- Markdown report
src/main.py
Other components
- CLI user
Connections 11
- CLI user → PR orchestrator: selects PRs
README.md - PR orchestrator → Configuration: reads settings
src/main.py - PR orchestrator → Open PR listing: lists open PRs
src/main.py - PR orchestrator → PR details: fetches details
src/main.py - PR orchestrator → Diff retrieval: requests diff
README.md - Open PR listing → GitHub API: requests PRs
README.md - PR details → GitHub API: requests details
src/github_client.py - Diff retrieval → GitHub API: requests diff
README.md - PR orchestrator → Review generation: submits PR context
src/main.py - Review generation → HuggingFace inference: requests inference
README.md - PR orchestrator → Markdown report: writes report
src/main.py