project comments create
Post a new text and/or image comment on the project
语法
joyihub project comments create参数
选项
属性
类型
示例
joyihub project comments create --release 1.2.0 --content '1.2.0 修复碰撞箱' --image ./changelog.png --project project-id响应示例
{
"attachments": [
{
"bytes": 40960,
"height": 720,
"id": "att-2",
"mime_type": "image/webp",
"sha256": "sha256",
"url": "/assets/comment-images/user-1/att-2.webp",
"width": 1280
}
],
"content": "1.2.0 修复碰撞箱",
"created_at": "2026-10-27T11:00:00Z",
"display_name": "Creator",
"id": "comment-new",
"is_creator": true,
"like_count": 0,
"owned": true,
"project_id": "project-id",
"reply_count": 0,
"user_id": "user-1"
}返回字段
属性
类型
错误码
NOT_AUTHENTICATED · Exit 3
本机没有有效 CLI 登录凭据
{
"error": {
"code": "NOT_AUTHENTICATED",
"message": "本机没有有效 CLI 登录凭据"
}
}UNAUTHORIZED · Exit 3
服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务
{
"error": {
"code": "UNAUTHORIZED",
"message": "服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务"
}
}FORBIDDEN · Exit 3
当前账号缺少服务端权限
{
"error": {
"code": "FORBIDDEN",
"message": "当前账号缺少服务端权限"
}
}CLIENT_TOO_OLD · Exit 4
服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新
{
"error": {
"code": "CLIENT_TOO_OLD",
"message": "服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新"
}
}USAGE_ERROR · Exit 2
参数、取值或本地输入不合法
{
"error": {
"code": "USAGE_ERROR",
"message": "参数、取值或本地输入不合法"
}
}