mirror of
https://github.com/Sea-Haven-Industries/pr-reviewer.git
synced 2026-10-02 15:33:18 +00:00
A single-user local dashboard that pulls open PRs from the Sea-Haven-Industries org, reviews each with a Fireworks model in the BLOCK/FIX/NIT/QUESTION format, and posts the review to GitHub as the token owner. Runs only on localhost; secrets stay in a gitignored .env and never reach the browser. Structured as an app/ package plus a static/ frontend so the module imports and static mount resolve. HTTP uses httpx2 (the runtime lib starlette's TestClient now prefers), pinned in requirements.txt. Includes a stdlib-only pytest suite (network mocked, no extra test deps so CI needs only pytest) with a skip-by-default live Fireworks test, and CI wired to the org ci-python-app reusable workflow to lint app and tests and run the mocked suite fully offline. Dependabot covers pip and github-actions.
23 lines
760 B
Text
23 lines
760 B
Text
# --- GitHub ---
|
|
# Leave GITHUB_TOKEN blank to use your local `gh auth token` instead of a PAT.
|
|
GITHUB_TOKEN=
|
|
GITHUB_ORG=Sea-Haven-Industries
|
|
PR_SEARCH_FILTER=is:pr state:open archived:false sort:updated-desc org:Sea-Haven-Industries
|
|
MAX_PRS=30
|
|
MAX_DIFF_BYTES=120000
|
|
|
|
# --- Fireworks ---
|
|
FIREWORKS_API_KEY=fw_your_key_here
|
|
FIREWORKS_BASE_URL=https://api.fireworks.ai/inference/v1
|
|
# Coding-strong options: accounts/fireworks/models/deepseek-v4-pro
|
|
# accounts/fireworks/models/kimi-k2p6
|
|
FIREWORKS_MODEL=accounts/fireworks/models/deepseek-v4-pro
|
|
FIREWORKS_TEMPERATURE=0.2
|
|
FIREWORKS_MAX_TOKENS=4000
|
|
|
|
# --- Review behavior ---
|
|
# Comma-separated author logins to @-mention in the review body.
|
|
MENTION_AUTHORS=openswe
|
|
|
|
HOST=127.0.0.1
|
|
PORT=8765
|