Repository navigation
feat(status): cover only the repository I stand in - #100
Merged
Merged
Conversation
Standing in one repository, the table I want is that repository's, and a sweep over every registered one spends GitHub calls on pull requests I am not looking at. The working directory now decides what status and sweep cover when it is a registered repository; --repo names one from anywhere, and --all keeps the whole picture. A narrowed report says what it left out, so a table of one repository is not read as all of them. Closes #98 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Standing in one repository, the table I want is that repository's. Every sweep also reads every registered repository from GitHub, so pull requests I am not looking at cost calls.
dw-mc statusanddw-mc sweepcover the registered repository the working directory is in,--reponames one from anywhere, and--allcovers every one. A narrowed report ends on a line naming what it shows, so a table of one repository is not read as all of them.Closes #98.
What changes
src/domain/coverage.ts— the rule:--repo, then--all, then the registered repository I stand in, and otherwise every registered one. It refuses an unregistered--repo, naming the registered ones, and refuses--repowith--all.src/cli/sweep.ts— the sweep takes what was asked, asksgh repo viewwhere I stand only when neither flag decides, and reads only the covered repositories.--repo,--alland the closing line live here, shared by both commands.dw-mc status/dw-mc sweeptake the two flags. The picker asks for every registered repository, as it always has.Test plan
pnpm check— pass, 713 testssrc/domain/coverage.test.ts— 9 new cases, one per branch of the rulesrc/cli/status.test.ts— 9 new cases: the table, the closing line, an unscoped repository never searched, both refusals, andsweepnarrowed by the directory and by--repo. The full spawn list and the read-only check both include the newgh repo view --json nameWithOwner.node dist/bin.jsagainst my own config with two repositories registered:statusinside dw-mc: its table only, plus the closing linesweepfrom~: 7 pull requests across 2 repositoriesstatus --all: the full tablesweep --repo AirHelp/ahplus-rails: 1 repository, plus the closing line--repo someone/else: refused, exit 1--repowith--all: refusedRisk
Low: this only changes what is read and shown, and never writes. If the rule misfires,
--allgives the whole table back, andgit revertremoves the change.🤖 Generated with Claude Code