Post comment to commit
POST
/v3/projects/{id}/repository/commits/{sha}/commentsPost comment to commit
请求参数
Path 参数
id
string
必需
The ID of a project
sha
string
必需
The commit's SHA
Body 参数application/x-www-form-urlencoded
note
string
必需
The text of the comment
path
string
可选
The file path
line
integer <int32>
必需
The line number
line_type
enum<string>
必需
The type of the line
枚举值:
newold
默认值:
new
示例值:
new
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Post comment to commit
数据结构
Post comment to commit
note
string
可选
path
string
可选
line
string
可选
line_type
string
可选
author
object (UserBasic)
可选
Get a single user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
created_at
string
可选
示例
{
"note": "string",
"path": "string",
"line": "string",
"line_type": "string",
"author": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"created_at": "string"
}
最后修改时间: 1 个月前