主题
cnb-rs issue comment <NUMBER> [flags]
为指定 Issue 创建评论。
评论内容通过 --comment 参数传入,支持 Markdown 格式。
--comment
<NUMBER>
-c, --comment <COMMENT>
继承的全局选项:
--repo <REPO>
group/repo
--domain <DOMAIN>
cnb.cool
# 创建评论 $ cnb-rs issue comment 123 -c "已确认问题,正在修复" ✓ Issue #123 评论已创建 # 使用 Markdown 格式 $ cnb-rs issue comment 42 -c "## 分析结果\n- 原因:配置错误\n- 影响范围:登录模块"
${API}/repos/{repo}/-/issues/{number}/comments
请求体:
{ "body": "评论内容" }
cnb-rs issue comment
为指定 Issue 创建评论。
评论内容通过
--comment参数传入,支持 Markdown 格式。选项
<NUMBER>: Issue 编号(必填)-c, --comment <COMMENT>: 评论内容(必填),支持 Markdown 格式继承的全局选项:
--repo <REPO>: 指定仓库路径(格式:group/repo)--domain <DOMAIN>: 指定目标域名(默认:cnb.cool)示例
2
3
4
5
6
API
${API}/repos/{repo}/-/issues/{number}/comments请求体:
2
3
另请参阅