提交pull request 评论
POST/api/v5/repos/:owner/:repo/pulls/:number/comments
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
number integerrequired
第几个PR,即本仓库PR的序数
Example: 0
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
bodystringrequired
评论内容
pathstring
文件的相对路径
positioninteger
代码所在行数
position_typestring
"binary":文件级评论,"text":代码行评论。默认为"text",传了"binary"时position不再生效。
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
idstring
bodystring
{
"id": "string",
"body": "string"
}
{
"id": "97219c08d421e55cfa841deca16a30f5d7269e10",
"body": "22222"
}