创建issue Comment
创建issue Comment
Path Parameters
- owner required
代码仓库的所有者,一般称之为"用户名(username)"。该名称不区分大小写。
- repo required
代码仓库名称。该名称不区分大小写。
- issue_number required
issue序号
Header Parameters
- Authorization required
私人token | app token(ats)(需以Bearer加空格开头)
- application/json
Request Body
- body string
评论内容(使用MD格式编写内容)
Responses
- 200
- 401
- 403
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- id string
id
- url string
url
- body string
Comment content(使用MD格式编写内容)
user object
id stringid
login stringusername
url string用户地址
avatar_url string头像地址
html_url string用户web地址
type string用户类型 User | Bot
- issue_url string
issue地址
- html_url string
issue Comment web 地址
- created_at string
创建时间
- updated_at string
修改时间
{
"id": "64a2791c36ca86246aed3612",
"url": "https://api.atomgit.com/repos/test/public01/issues/comments/64a6742ece72b305b44bb8f1",
"body": "issue Comment content",
"user": {
"id": "62c791bede9059102516aa8f",
"login": "lik0914",
"url": "https://api.atomgit.com/users/lik0914",
"avatar_url": "https://xxx.com/uploads/user/1657265547983_3769.png",
"html_url": "https://atomgit.com/lik0914",
"type": "User"
},
"issue_url": "https://api.atomgit.com/repos/test/public01/issue/1",
"html_url": "https://atomgit.com/test/public01/issues/1#issuecomment-64a6742ece72b305b44bb8f1",
"created_at": "2023-07-04T17:03:05+08:00",
"updated_at": "2023-07-04T17:03:05+08:00"
}
token不合法、请检查token是否正确
- application/json
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
权限异常
- application/json
- Schema
- Example (from schema)
Schema
- error_code string
错误名称
- error_message string
错误描述
{
"error_code": "string",
"error_message": "string"
}
Loading...