Llangjitianya008feat(discussions): add org discussion comment create/edit/reply
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(discussions): add org discussion comment create/edit/reply Implements org-level discussion comment write commands: - gc discussions comments create <number> --org <org> --body [--json] - gc discussions comments edit <number> <comment-id> --org <org> --body [--json] - gc discussions comments reply <number> <comment-id> --org <org> --body [--json] API alignment per the official OpenAPI: - UpdateOrgDiscussionComment uses PUT, not PATCH Docs: docs/COMMANDS.md gains sections for all three commands. Tests: flag parsing, run validation, HTTP-mocked request assertions (method/path/body), --json output, and API error paths. Refs #552 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 1 个月前 | |
feat(discussions): add API write operations and org discussion comment delete command Add all 30 discussion write operation API functions (15 org + 15 repo) and org discussion comment delete command. Closes #558 | 1 个月前 | |
feat(discussions): add org discussion comment create/edit/reply Implements org-level discussion comment write commands: - gc discussions comments create <number> --org <org> --body [--json] - gc discussions comments edit <number> <comment-id> --org <org> --body [--json] - gc discussions comments reply <number> <comment-id> --org <org> --body [--json] API alignment per the official OpenAPI: - UpdateOrgDiscussionComment uses PUT, not PATCH Docs: docs/COMMANDS.md gains sections for all three commands. Tests: flag parsing, run validation, HTTP-mocked request assertions (method/path/body), --json output, and API error paths. Refs #552 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 1 个月前 | |
test(discussions): assert repo comment order param + 404→exit3 test + docs -R wording (review P1/P2) 评审 P1:①TestListRepoDiscussionCommentsBuildsPathAndParams 未断言 order=time_desc query → 补 gotQuery 断言;②4 个 comment/reply 无 404→exit3 单测 → 补 org comments list 404→ExitNotFound。P2:project comments docs -R 写「必填」不准(ResolveRepo 可省略)→ 改「可省略自动推断」与 list/view 一致。 | 2 个月前 | |
feat(discussions): discussion comments + replies (org+project) (#465,#466,#469,#470) 新增 gc discussions comments 子命令组(org+project 双 scope,评论+回复)。 端点按 §9/§5.9.B 查 gc-api-doc 确认 4 个 GET 端点,评论/回复 schema 一致。 - api/queries_discussions.go: DiscussionComment 结构 + ListOrg/RepoDiscussionComments + ListOrg/RepoDiscussionCommentReplies + appendDiscussionCommentParams(page/per_page/order) - pkg/cmd/discussions/comments/: org comments 组(list/replies,--org) - pkg/cmd/discussions/project/comments/: project comments 组(list/replies,-R) - pkg/cmd/discussions/render/: 共享 PrintComments(独立包打破 import cycle) - 注册 comments 到 discussions + project - 404→ExitNotFound(3)(与 view 一致,agent-friendly) - docs/COMMANDS.md: 4 个 comments 子命令节 - 单测: api 4 端点路径/params/parse + 4 命令 run 级(text/json/validation) Closes #465 Closes #466 Closes #469 Closes #470 | 2 个月前 | |
feat(discussions): add org discussion comment create/edit/reply Implements org-level discussion comment write commands: - gc discussions comments create <number> --org <org> --body [--json] - gc discussions comments edit <number> <comment-id> --org <org> --body [--json] - gc discussions comments reply <number> <comment-id> --org <org> --body [--json] API alignment per the official OpenAPI: - UpdateOrgDiscussionComment uses PUT, not PATCH Docs: docs/COMMANDS.md gains sections for all three commands. Tests: flag parsing, run validation, HTTP-mocked request assertions (method/path/body), --json output, and API error paths. Refs #552 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 1 个月前 | |
feat(discussions): add org discussion comment create/edit/reply Implements org-level discussion comment write commands: - gc discussions comments create <number> --org <org> --body [--json] - gc discussions comments edit <number> <comment-id> --org <org> --body [--json] - gc discussions comments reply <number> <comment-id> --org <org> --body [--json] API alignment per the official OpenAPI: - UpdateOrgDiscussionComment uses PUT, not PATCH Docs: docs/COMMANDS.md gains sections for all three commands. Tests: flag parsing, run validation, HTTP-mocked request assertions (method/path/body), --json output, and API error paths. Refs #552 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 1 个月前 |