feat: add --list-prs to fj_read.py to list all open PRs #12
Loading…
Reference in a new issue
No description provided.
Delete branch "fj-list-prs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Give the fj readers a way to list every open PR in a repo, not just dump one by number.
What changed
fj_read.pygains a--list-prsmode:/repos/{repo}/pulls?state=openuntil the API runs dry — no silent cap.[draft]flag, title, author,head -> base, labels.--format json,--out, and inferred--repo/--host.SKILL.mddocuments the new mode under "Reading a PR or issue".Verification
python3 -m py_compileclean.home/trader: rendered all 8 open PRs (paging past the 50-item batch works).public/skills),--format json, and--outpaths all confirmed.Pages through /repos/{repo}/pulls?state=open (no silent cap) and renders one line per PR: number, draft flag, title, author, head->base, labels. Supports --format json, --out, and inferred --repo/--host. Documented in SKILL.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>