创建commit评论
POST/api/v5/repos/:owner/:repo/commits/:sha/comments
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
sha stringrequired
commit的id
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
bodystringrequired
评论内容
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- 1
Schema
idstring
bodystring
created_atstring
updated_atstring
{
"id": "string",
"body": "string",
"created_at": "string",
"updated_at": "string"
}
成功 示例
{
"id": "12312sadsa",
"body": "content",
"created_at": "2024-03-28T11:19:33+08:00",
"updated_at": "2024-03-28T11:19:33+08:00"
}