Get a specific commit of a project
GET
/v3/projects/{id}/repository/commits/{sha}Get a specific commit of a project
请求参数
Path 参数
id
string
必需
The ID of a project
sha
string
必需
A commit sha, or the name of a branch or tag
示例代码
返回响应
成功(200)
记录不存在(404)
HTTP 状态码: 200
内容格式: JSONapplication/json
Get a specific commit of a project
数据结构
Get a specific commit of a project
id
string
可选
short_id
string
可选
title
string
可选
author_name
string
可选
author_email
string
可选
created_at
string
可选
committer_name
string
可选
committer_email
string
可选
message
string
可选
parent_ids
string
可选
committed_date
string
可选
authored_date
string
可选
stats
object (RepoCommitStats)
可选
additions
string
可选
deletions
string
可选
total
string
可选
status
string
可选
示例
{
"id": "string",
"short_id": "string",
"title": "string",
"author_name": "string",
"author_email": "string",
"created_at": "string",
"committer_name": "string",
"committer_email": "string",
"message": "string",
"parent_ids": "string",
"committed_date": "string",
"authored_date": "string",
"stats": {
"additions": "string",
"deletions": "string",
"total": "string"
},
"status": "string"
}
最后修改时间: 1 个月前