fix
BREAKING
api
task/fix-comment-create-response-shape
#1 / 1
fix(api): POST .../comments returns created comment as single flat resource
Previous shape returned IssueCommentListResponse (the full comment list) instead of the created comment. This caused agents to KeyError on comment fields and triggered duplicate comments when retrying.
The service's create_comment() already returned IssueCommentResponse; the route was ignoring it and calling list_comments() a second time. Now returns the service response directly.
Also adds test_create_comment_returns_single_resource to guard the shape.
sha256:30bf7a80d9e1a2e157b36de5d67178045e46f752c74b73a186d79a6289fdda3b
sha
sha256:2f342bf010f92f90a1a0928b87fae8b6d4f32dd4ca488501f18b1b47cb4d10a0
snapshot
← Older
Oldest on task/fix-comment-create-response-shape
All commits
Newer →
Latest on task/fix-comment-create-response-shape
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:30bf7a80d9e1a2e157b36de5d67178045e46f752c74b73a186d79a6289fdda3b --body "your comment"
No comments yet. Be the first to start the discussion.