gabriel / muse public
fix patch hub task/fix-comment-create-response-shape #1 / 1
gabriel · 164 days ago · Apr 15, 2026 · Diff

fix(hub): issue comment --json returns single flat resource, not list

POST .../comments now returns the created comment directly. Update CLI to read commentId from the flat response; update text output to print commentId instead of comment count.

Rename _comment_list_resp test helper to _comment_resp and update all 22 comment-related tests to assert against the new single-resource shape.

sha256:0828a61376de907629e9234d087e49fb68f33209264330ddc3c9e5b97a49d7e8 sha
+3 ~14 −3 symbols
sha256:8b32cc2a706c671d10f6bc8e692de2b6fe5898a1553f210a7fe4ff7bfef3b61a snapshot
+3
symbols added
~14
symbols modified
−3
symbols removed
0
dead code introduced
Semantic Changes 20 symbols
~ muse/cli/commands/hub.py .py 1 symbol modified
~ tests/test_cmd_hub_hardening.py .py 3 symbols added, 3 symbols removed, 13 symbols modified
− test_success_json_output_has_comments method method test_success_json_output_has_comments L6704–6719
− test_text_shows_comment_count method method test_text_shows_comment_count L6830–6843
− _comment_list_resp function function _comment_list_resp L4007–4013
+ test_success_json_output_has_comment_id method method test_success_json_output_has_comment_id L6709–6724
+ test_text_shows_comment_id method method test_text_shows_comment_id L6835–6847
+ _comment_resp function function _comment_resp L4007–4018
← Older Oldest on task/fix-comment-create-response-shape
All commits
Newer → Latest on task/fix-comment-create-response-shape

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