Commit multiple file changes as one commit
POST
/v3/projects/{id}/repository/commitsThis feature was introduced in GitLab 8.13
请求参数
Path 参数
id
string
必需
The ID of a project
Body 参数application/x-www-form-urlencoded
branch_name
string
必需
The name of branch
commit_message
string
必需
Commit message
actions
array [object]
必需
Actions to perform in commit
author_email
string
可选
Author email for commit
author_name
string
可选
Author name for commit
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Commit multiple file changes as one commit
数据结构
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 个月前