gabriel / muse public
feat patch task/proposal-close-cmd #1 / 1
AI Agent gabriel · 126 days ago · May 9, 2026 · Diff

feat: add hub proposal close subcommand

POST .../proposals/{id}/close — closes an open proposal without merging. Includes run_proposal_close handler, argparse registration, and 6 new tests in TestHubProposalCloseCommand covering: subcommand recognition, POST routing, JSON output, text confirmation, missing arg rejection, and --hub flag.

sha256:dd3cab2b485603285397f54b96ad368408a8d8801248031ce1a70bf7b87ac0c2 sha
+11 ~1 symbols
sha256:0505dbfe9569ed56f50bdea1d1a3261ffdf25ebf137a2d7de63c48955626f723 snapshot
+11
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes 12 symbols
~ muse/cli/commands/hub/proposals.py .py 1 symbol added, 1 symbol modified
+ run_proposal_close function function run_proposal_close L686–724
~ tests/test_cli_hub.py .py 10 symbols added
+ TestHubProposalCloseCommand class class TestHubProposalCloseCommand L1496–1599
+ _mock_proposal method method _mock_proposal L1511–1522
+ _patches method method _patches L1524–1540
+ _setup_auth method method _setup_auth L1501–1509
+ test_close_calls_post_to_close_endpoint method method test_close_calls_post_to_close_endpoint L1549–1558
+ test_close_hub_flag_accepted method method test_close_hub_flag_accepted L1591–1599
+ test_close_json_output_contains_proposal_id method method test_close_json_output_contains_proposal_id L1560–1570
+ test_close_requires_proposal_id method method test_close_requires_proposal_id L1583–1589
+ test_close_subcommand_exists method method test_close_subcommand_exists L1542–1547
+ test_close_text_output_confirms_closed method method test_close_text_output_confirms_closed L1572–1581
← Older Oldest on task/proposal-close-cmd
All commits
Newer → Latest on task/proposal-close-cmd

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:dd3cab2b485603285397f54b96ad368408a8d8801248031ce1a70bf7b87ac0c2 --body "your comment"