fj pr list: filter by --label/--assignee/--author (and add --author to issue list) #113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Task
Add filtering flags to
fj pr list, mirroring the issue side flag-for-flag:--labeland--assigneeonfj pr list, threaded intopull_core::ListOptionsand its query builder the same waysrc/api/issue.rsthreadslabels/assignee.--authoron bothpr listandissue list(Forgejo'sposter/created_byquery param), closing the gh--authorgap in one move.clapArgsstruct so issue and PR list stay in lockstep and cannot drift again.Source:
rasterstate/fj#108.Priority
p2. "Show me the PRs I need to act on" (label
needs-review, assigned to me, opened by teammate X) is the spine of the daily review loop and is almost always a filtered query. Strong gh-parity value; one notch below the silent-truncation/JSON-gap p1s because there is a workingfj apifallback today.Reason
fj pr listfilters by state only (src/cli/pr.rsListArgs;src/api/pull_core.rsListOptionscarry just state/limit/page), whilefj issue listalready accepts--label/--assigneeagainst the same forge. Forgejo serves PRs through the issues model and accepts the samelabels/assignee/posterparams, so the gap is purely at the CLI/options layer. The asymmetry breaks the muscle memory of anyone who learned the issue command first.Acceptance
fj pr list --label needs-reviewfilters PRs by label.fj pr list --assignee alicefilters PRs by assignee.fj pr list --author bobandfj issue list --author bobfilter by poster/creator.clapArgsstruct used by bothpr listandissue list.src/client/integration_tests.rsfor the new query params on the pulls endpoint.cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings, andcargo test --allpass.Dependencies
None. Independent of the write-side label work; reuses the existing issue-list query-building pattern.
Size
M
fj pr listcannot filter by label/assignee/author, thoughfj issue listfilters by label and assignee #108