List filters: issue --milestone/--mentioned, pr --base/--head/--draft #170

Closed
opened 2026-06-15 15:01:14 +00:00 by stephen · 0 comments
Owner

Problem

fj issue list filters by state/label/assignee/search and fj pr list by state/label/author; other common server-side filters are missing, so scripts grep JSON client-side.

Acceptance criteria

  • fj issue list --milestone <name> and --mentioned <user> (Forgejo issue search milestones, mentioned).
  • fj pr list --base <branch>, --head <branch>, --draft / --no-draft.
  • New filters are additive query params, composable with existing ones, and reflected in --json.
  • Unknown milestone/user yields an empty result with a clear note, not a 500.

Value

Push filtering to the server; less client-side JSON wrangling in scripts.

Priority

p2.

Dependencies / sequencing

None. Confirm which params the host's /issues and /pulls search actually accept (note: /pulls cannot filter by assignee, per the prior survey).

Overlap

None; complements the shipped label/author/assignee filters (#113).

## Problem `fj issue list` filters by state/label/assignee/search and `fj pr list` by state/label/author; other common server-side filters are missing, so scripts grep JSON client-side. ## Acceptance criteria - [ ] `fj issue list --milestone <name>` and `--mentioned <user>` (Forgejo issue search `milestones`, `mentioned`). - [ ] `fj pr list --base <branch>`, `--head <branch>`, `--draft` / `--no-draft`. - [ ] New filters are additive query params, composable with existing ones, and reflected in `--json`. - [ ] Unknown milestone/user yields an empty result with a clear note, not a 500. ## Value Push filtering to the server; less client-side JSON wrangling in scripts. ## Priority p2. ## Dependencies / sequencing None. Confirm which params the host's `/issues` and `/pulls` search actually accept (note: `/pulls` cannot filter by assignee, per the prior survey). ## Overlap None; complements the shipped label/author/assignee filters (#113).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
rasterstate/fj#170
No description provided.