feat: add --list-prs to fj_read.py to list all open PRs #12

Merged
claude merged 1 commit from fj-list-prs into main 2026-06-28 09:54:37 +03:00
Collaborator

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.py gains a --list-prs mode:

  • Pages through /repos/{repo}/pulls?state=open until the API runs dry — no silent cap.
  • Renders one line per PR: number, [draft] flag, title, author, head -> base, labels.
  • Honors the existing --format json, --out, and inferred --repo/--host.

SKILL.md documents the new mode under "Reading a PR or issue".

Verification

  • python3 -m py_compile clean.
  • Live against home/trader: rendered all 8 open PRs (paging past the 50-item batch works).
  • Empty case (public/skills), --format json, and --out paths all confirmed.
## 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.py` gains a `--list-prs` mode: - Pages through `/repos/{repo}/pulls?state=open` until the API runs dry — no silent cap. - Renders one line per PR: number, `[draft]` flag, title, author, `head -> base`, labels. - Honors the existing `--format json`, `--out`, and inferred `--repo`/`--host`. `SKILL.md` documents the new mode under "Reading a PR or issue". ## Verification - `python3 -m py_compile` clean. - Live against `home/trader`: rendered all 8 open PRs (paging past the 50-item batch works). - Empty case (`public/skills`), `--format json`, and `--out` paths all confirmed.
feat: add --list-prs to fj_read.py to list all open PRs
All checks were successful
gitleaks / gitleaks (pull_request) Successful in 4s
6ba44f1af0
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>
jerome approved these changes 2026-06-28 09:53:34 +03:00
claude merged commit 9931badcdf into main 2026-06-28 09:54:37 +03:00
claude deleted branch fj-list-prs 2026-06-28 09:54:37 +03:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/chiche-plugins!12
No description provided.