Org-wide GitHub config and tooling for fraymio.
.github/workflows/pr-review.yml is a reusable workflow that posts an OpenAI review (gpt-6-astra by default) as a comment on a PR as soon as it's opened, or when a draft is marked ready. It never approves or blocks. Bot PRs and PRs from forks are skipped.
Opting a repo in: add .github/workflows/ai-pr-review.yml to the repo. Either copy workflow-templates/ai-pr-review.yml, or pick AI PR review under Actions → New workflow. Delete the file to opt out.
on:
pull_request:
types: [opened, ready_for_review]
jobs:
review:
uses: fraymio/.github/.github/workflows/pr-review.yml@main
permissions:
contents: read
pull-requests: write
secrets: inherit
# with:
# model: gpt-6-astra
# reasoning_effort: medium # low | medium | high | xhigh | max
# exclude: "frontend/src/api_service/**, *.ipynb" # on top of lock files + minified outputSecret: OPENAI_API_KEY as an org secret (Org settings → Secrets → Actions), shared with the opted-in repos. No other token is needed: each repo's built-in GITHUB_TOKEN posts the review.
Local dry run:
GITHUB_TOKEN=... OPENAI_API_KEY=... REPOSITORY=fraymio/tessera PR_NUMBER=123 DRY_RUN=true \
uv run pr_review/review.pystale_prs/pr_tracker.py writes a CSV of PRs that have been open past the review SLA.
uv sync # creates .venv with runtime + dev deps from uv.lock
uv run pytest # unit tests
uv run pytest --int # + integration testsDependencies are in pyproject.toml (dev tools in the dev group) and pinned in uv.lock; add one with uv add <pkg> or uv add --dev <pkg>. Tests live in tests/; pytest.ini puts pr_review/ on the import path. Integration tests (@pytest.mark.int, e.g. the one that runs the real git binary) are skipped by default; run them with pytest --int. End to end tests (@pytest.mark.e2e) need pytest --e2e.