mirror of
https://github.com/Sea-Haven-Industries/pr-reviewer.git
synced 2026-09-30 09:13:15 +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.
16 lines
346 B
Bash
Executable file
16 lines
346 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
if [[ ! -d .venv ]]; then
|
|
python3 -m venv .venv
|
|
./.venv/bin/pip install -q -U pip
|
|
./.venv/bin/pip install -q -r requirements.txt
|
|
fi
|
|
|
|
if [[ ! -f .env ]]; then
|
|
echo "No .env found. Copy .env.example to .env and fill in your keys."
|
|
exit 1
|
|
fi
|
|
|
|
exec ./.venv/bin/python -m app.main
|