AFILALABS PR Reviewer
A command-line tool developed by AFILALABS (Chicago) that reviews GitHub pull requests using OpenAI's GPT-4 API.
Features
- Automatically analyzes pull requests from a GitHub URL
- Reviews each file in the PR individually
- Provides overall assessment of the PR
- Can add comments directly to GitHub (optional)
- Configurable through environment variables or config file
Installation
pip install afila-pr-reviewer
Requirements
- Python 3.7+
- GitHub personal access token with repo scope
- OpenAI API key
Usage
Quick Start
First time setup:
pr-reviewer --setup
Review a PR:
pr-reviewer https://github.com/owner/repo/pull/123
Command line options
pr-reviewer https://github.com/owner/repo/pull/123 \
--github-token your-github-token \
--openai-key your-openai-api-key \
--comment \ # Add comments to the PR
--output review.md # Save the review to a file
Environment Variables
You can use environment variables instead of passing tokens as arguments:
export GITHUB_TOKEN=your-github-token
export OPENAI_API_KEY=your-openai-api-key
pr-reviewer https://github.com/owner/repo/pull/123
License
MIT
Metadata
Release files for afila-pr-reviewer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| afila_pr_reviewer-0.1.0.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| afila_pr_reviewer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / afila_pr_reviewer-0.1.0.tar.gz
| Download URL | afila_pr_reviewer-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d12f569180b32d0c94275c01a254e70cacbdcda3fbefdcc247fb1d6429f8513
|
|
BLAKE2b-256 checksum How to use checksums |
c9f8a5ad850d2b7b37eeaed0ee4d681b56058f33f86d794f13fb2f1edfdbf549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Release files / afila_pr_reviewer-0.1.0-py3-none-any.whl
| Download URL | afila_pr_reviewer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f282716c44807c7912db95148e0d2f651ba487153c0628d890ad6636abf65b1
|
|
BLAKE2b-256 checksum How to use checksums |
f084e2c50012ac644485b21f99634a8f38833ea29e1980132a85cd4b1703aeed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Security for afila-pr-reviewer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.