Create Commit Comment
POST/api/v5/repos/:owner/:repo/commits/:sha/comments
Request
Path Parameters
owner stringrequired
Repository space address (organization or individual's address path)
repo stringrequired
Repository path (path)
sha stringrequired
commit ID
Query Parameters
access_token stringrequired
User authorization code
- application/json
Body
bodystringrequired
comment content
Responses
- 200
Successful Response
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"
}
Successful Example
{
"id": "12312sadsa",
"body": "content",
"created_at": "2024-03-28T11:19:33+08:00",
"updated_at": "2024-03-28T11:19:33+08:00"
}