gabriel / muse public
fix BREAKING fix/hub-read-rename-and-url-enrich #1 / 1
gabriel · 171 days ago · Apr 10, 2026 · Diff

fix: rename hub issue get→read, proposal view→read; add _enrich_hub_url_from_remote

- _enrich_hub_url_from_remote: when the hub URL stored by muse hub connect is a bare base URL (no owner/slug), look up a remote whose netloc matches and extract owner/slug from its path — so muse hub issue read <n> works after muse hub connect http://localhost:10003 without extra flags. - Rename 'muse hub issue get' → 'muse hub issue read' (consistent verb across CLI and MCP). - Rename 'muse hub proposal view' → 'muse hub proposal read' (same rationale). - TDD: 9 new tests covering _enrich_hub_url_from_remote, issue read subcommand existence, and proposal read subcommand existence.

sha256:ef355e07c81d05b0a18b59156ac63e1f1408961077305320018a5d3392ba31a0 sha
+17 ~3 −1 symbols
sha256:f8832f3e0395d03f934e9afdd8486bf80fbf571eb07f7917d511ad781b5c4d28 snapshot
+17
symbols added
~3
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 21 symbols
~ muse/cli/commands/hub.py .py 2 symbols added, 1 symbol removed, 3 symbols modified
− run_issue_get function function run_issue_get L2980–3016
+ _enrich_hub_url_from_remote function function _enrich_hub_url_from_remote L524–548
+ run_issue_read function function run_issue_read L3012–3048
~ tests/test_cli_hub.py .py 15 symbols added
+ TestEnrichHubUrlFromRemote class class TestEnrichHubUrlFromRemote L338–376
+ _write_remote method method _write_remote L341–343
+ test_enriches_bare_hub_url_with_owner_slug method method test_enriches_bare_hub_url_with_owner_slug L345–349
+ test_leaves_already_enriched_url_unchanged method method test_leaves_already_enriched_url_unchanged L351–355
+ test_returns_bare_url_outside_repo method method test_returns_bare_url_outside_repo L369–376
+ test_returns_bare_url_when_no_matching_remote method method test_returns_bare_url_when_no_matching_remote L357–362
+ test_returns_bare_url_when_no_remotes_configured method method test_returns_bare_url_when_no_remotes_configured L364–367
+ TestHubIssueReadCommand class class TestHubIssueReadCommand L384–414
+ _setup_auth method method _setup_auth L387–396
+ test_issue_get_subcommand_removed method method test_issue_get_subcommand_ L410–414
+ test_issue_read_subcommand_exists method method test_issue_read_subcommand_exists L398–408
+ TestHubProposalReadCommand class class TestHubProposalReadCommand L422–460
+ _setup_auth method method _setup_auth L425–434
+ test_proposal_read_subcommand_exists method method test_proposal_read_subcommand_exists L436–454
+ test_proposal_view_subcommand_removed method method test_proposal_view_subcommand_ L456–460
← Older Oldest on fix/hub-read-rename-and-url-enrich
All commits
Newer → Latest on fix/hub-read-rename-and-url-enrich

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ef355e07c81d05b0a18b59156ac63e1f1408961077305320018a5d3392ba31a0 --body "your comment"