Repository navigation
feat(pr-management): let the code-review pr: selector name several PRs - #2055
Merged
Merged
Conversation
`pr:<N>` took exactly one number, so reviewing a handful of named PRs meant one session per PR. The selector now also takes `pr:N,M`, inclusive ranges `pr:N-M` (optional `#` prefixes) and repeated `pr:` tokens; duplicates are dropped, at most 50 PRs, and the queue keeps the order the maintainer named. A named PR missing from the open-PR sweep is reported in the queue's new `not_open` list instead of vanishing. `pr_number` stays in the selector output (set when exactly one PR is named) beside the new `pr_numbers`, so single-PR callers are unchanged. Generated-by: Claude Opus 5
potiuk
enabled auto-merge (squash)
November 10, 2026 17:29
potiuk
disabled auto-merge
November 10, 2026 17:30
potiuk
enabled auto-merge (squash)
November 10, 2026 17:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pr-management-code-review pr:<N>took exactly one PR, so reviewing a handful of named PRs meant a separate session per PR. The selector now also accepts:pr:1929,1944,2013pr:2005-2008(#prefixes allowed, as inpr:#1929)pr:1944 pr:1929Duplicates are dropped, a selector naming more than 50 PRs is refused (a fat-fingered range), and the queue keeps the order the maintainer named instead of sorting by last update. A named PR that isn't in the open-PR sweep (closed, merged, or a typo) is reported in the queue's new
not_openlist instead of silently disappearing.pr_numberstays in the selector output, set when exactly one PR is named, beside the newpr_numbers, so single-PR callers are unchanged. The mode is stillsingle-pr, soclassifications/selector-single-pr.md(now titled "named PRs") keeps applying.Changes
tools/pr-management/src/pr_management/code_review/selectors.py:pr_numberslist,parse_pr_list, named-order sorting.tools/pr-management/src/pr_management/code_review/cli.py:not_openin thequeueoutput.tools/pr-management/tests/code_review/test_selectors.py: list, range, repeat and dedupe parsing; refusals (empty, non-numeric, trailing comma, backwards range, over 50, bad separator); named order and filter bypass in the queue.invocation.md(example and parameter row),SKILL.mdInputs,selector-single-pr.md,tools/pr-management/README.md; themagpie-security-toolscopy and themeasured_tokensstamp are regenerated.Testing
uv run --project tools/pr-management pytest tools/pr-management: passes.prek run --files <changed files>: passes.🤖 Generated with Claude Code