Get a project repository commits
GET
/v3/projects/{id}/repository/commitsGet a project repository commits
请求参数
Path 参数
id
string
必需
The ID of a project
Query 参数
ref_name
string
可选
The name of a repository branch or tag, if not given the default branch is used
since
string
可选
Only commits after or in this date will be returned
until
string
可选
Only commits before or in this date will be returned
page
integer <int32>
可选
The page for pagination
默认值:
0
per_page
integer <int32>
可选
The number of results per page
默认值:
20
path
string
可选
The file path
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Get a project repository commits
数据结构
Get the commits of a merge request
id
string
可选
short_id
string
可选
title
string
可选
author_name
string
可选
author_email
string
可选
created_at
string
可选
committer_name
string
可选
committer_email
string
可选
message
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"
}
最后修改时间: 1 个月前