@@ -43,13 +43,13 @@ exec gh discussion comment $SECOND_COMMENT_ID --body-file $WORK/reply-body.txt
4343stdout 'discussioncomment'
4444
4545# Verify the reply appears
46- exec gh discussion view $DISCUSSION_URL --replies $ FIRST_COMMENT_ID --json comments
46+ exec gh discussion view $FIRST_COMMENT_ID --json comments
4747stdout2env REPLIES_JSON
4848jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
4949jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Reply to first'
5050jq2env REPLIES_JSON '.comments.nodes[0].replies.nodes[0].id' FIRST_REPLY_ID
5151
52- exec gh discussion view $DISCUSSION_URL --replies $ SECOND_COMMENT_ID --json comments
52+ exec gh discussion view $SECOND_COMMENT_ID --json comments
5353stdout2env REPLIES_JSON
5454jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
5555jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Reply from file'
@@ -109,7 +109,7 @@ stdout2env REPLY_URL
109109stdout 'discussioncomment'
110110
111111# Verify the reply
112- exec gh discussion view $DISCUSSION_URL --replies $ FIRST_COMMENT_URL --order oldest --json comments
112+ exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
113113stdout2env URL_REPLIES_JSON
114114jq-assert URL_REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^2$'
115115
@@ -118,7 +118,7 @@ exec gh discussion comment $REPLY_URL --edit --body 'Edited reply via URL'
118118stdout 'discussioncomment'
119119
120120# Verify the edit
121- exec gh discussion view $DISCUSSION_URL --replies $ FIRST_COMMENT_URL --order oldest --json comments
121+ exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
122122stdout2env EDITED_URL_REPLIES_JSON
123123jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Edited first reply'
124124jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[1].body' 'Edited reply via URL'
@@ -127,7 +127,7 @@ jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[1].body' 'Ed
127127exec gh discussion comment $REPLY_URL --delete --yes
128128
129129# Verify deletion
130- exec gh discussion view $DISCUSSION_URL --replies $ FIRST_COMMENT_URL --order oldest --json comments
130+ exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
131131stdout2env FINAL_URL_REPLIES_JSON
132132jq-assert FINAL_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
133133jq-assert FINAL_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Edited first reply'
0 commit comments