Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions offline/code_review_benchmark/step0_fork_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import tempfile
import time

from dotenv import load_dotenv
import requests


Expand Down Expand Up @@ -268,6 +269,8 @@ def _load_pr_urls_from_file(path: str) -> list[str]:

def main():
"""CLI entrypoint: process a single PR or a batch file."""
load_dotenv(".env", verbose=True)

parser = argparse.ArgumentParser(description="Clone PR(s) to your org for AI review")
parser.add_argument("pr_url", nargs="?", help="GitHub PR URL (for single run)")
parser.add_argument("--file", help="Path to golden comments JSON to batch process")
Expand Down
3 changes: 3 additions & 0 deletions offline/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ dependencies = [
"matplotlib>=3.8.0",
"requests>=2.32.5",
"tqdm>=4.66.0",
"pytest>=9.0.3",
"ruff>=0.14.11",
"python-dotenv>=1.2.2",
]

[dependency-groups]
Expand Down
Loading