Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 327 Bytes

File metadata and controls

12 lines (9 loc) · 327 Bytes

pr-auto-reviewer

Setup

  1. Set env vars: export GITHUB_TOKEN=... and export OPENROUTER_API_KEY=...
  2. Install dependency: pip install requests

Usage

python pr_reviewer.py owner/repo 42

This fetches the PR diff, asks an OpenAI-compatible model for review notes, and posts the comment back to the PR.