Skip to content

Fix pr-status repo resolution for cross-repo PRs#33

Merged
stephen-tatari merged 1 commit into
mainfrom
worktree-fix-pr-status-repo-resolution
Mar 4, 2026
Merged

Fix pr-status repo resolution for cross-repo PRs#33
stephen-tatari merged 1 commit into
mainfrom
worktree-fix-pr-status-repo-resolution

Conversation

@stephen-tatari

Copy link
Copy Markdown
Owner

Summary

  • Moved --repo flag from parent parser to each subcommand parser, so diagnose --repo org/repo 42 works (previously only --repo org/repo diagnose 42 worked, which the agent never used)
  • Updated SKILL.md drill-down examples to use full PR URLs instead of bare numeric IDs, guiding the agent to preserve repo context in follow-up commands
  • Added tests for --repo on subcommands (diagnose, status, analyze-logs) and default None

Test plan

  • 101 unit tests pass
  • Manual: diagnose --repo tatari-tv/quickbooks-adapter 370 resolves correctly
  • Manual: status --repo tatari-tv/quickbooks-adapter 370 resolves correctly
  • Manual: checks --repo tatari-tv/quickbooks-adapter 370 resolves correctly
  • Manual: URL mode still works (diagnose https://github.com/tatari-tv/quickbooks-adapter/pull/370)

Fixes cross-repo PR resolution when agent passes
numeric PR numbers to follow-up subcommands. The
--repo flag now works on each subcommand instead
of only on the parent parser. Updates SKILL.md
examples to use full PR URLs.
@stephen-tatari stephen-tatari marked this pull request as ready for review March 4, 2026 19:42
@stephen-tatari stephen-tatari merged commit 2ecf9d8 into main Mar 4, 2026
1 check passed
@stephen-tatari stephen-tatari deleted the worktree-fix-pr-status-repo-resolution branch March 4, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant