Show the merge request changes
GET
/v3/projects/{id}/merge_request/{merge_request_id}/changesShow the merge request changes
请求参数
Path 参数
id
string
必需
The ID of a project
merge_request_id
integer <int32>
必需
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Show the merge request changes
数据结构
Show the merge request changes
id
string
可选
iid
string
可选
project_id
string
可选
title
string
可选
description
string
可选
state
string
可选
created_at
string
可选
updated_at
string
可选
target_branch
string
可选
source_branch
string
可选
upvotes
string
可选
downvotes
string
可选
author
object (UserBasic)
可选
Get a single user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
assignee
object (UserBasic)
可选
Get a single user
source_project_id
string
可选
target_project_id
string
可选
labels
string
可选
work_in_progress
string
可选
milestone
object (Milestone)
可选
Update an existing project milestone
id
string
可选
iid
string
可选
project_id
string
可选
title
string
可选
description
string
可选
state
string
可选
created_at
string
可选
updated_at
string
可选
due_date
string
可选
start_date
string
可选
merge_when_build_succeeds
string
可选
merge_status
string
可选
sha
string
可选
merge_commit_sha
string
可选
subscribed
string
可选
user_notes_count
string
可选
should_remove_source_branch
string
可选
force_remove_source_branch
string
可选
web_url
string
可选
changes
object (RepoDiff)
可选
old_path
string
可选
new_path
string
可选
a_mode
string
可选
b_mode
string
可选
diff
string
可选
new_file
string
可选
renamed_file
string
可选
deleted_file
string
可选
示例
{
"id": "string",
"iid": "string",
"project_id": "string",
"title": "string",
"description": "string",
"state": "string",
"created_at": "string",
"updated_at": "string",
"target_branch": "string",
"source_branch": "string",
"upvotes": "string",
"downvotes": "string",
"author": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"assignee": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"source_project_id": "string",
"target_project_id": "string",
"labels": "string",
"work_in_progress": "string",
"milestone": {
"id": "string",
"iid": "string",
"project_id": "string",
"title": "string",
"description": "string",
"state": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"start_date": "string"
},
"merge_when_build_succeeds": "string",
"merge_status": "string",
"sha": "string",
"merge_commit_sha": "string",
"subscribed": "string",
"user_notes_count": "string",
"should_remove_source_branch": "string",
"force_remove_source_branch": "string",
"web_url": "string",
"changes": {
"old_path": "string",
"new_path": "string",
"a_mode": "string",
"b_mode": "string",
"diff": "string",
"new_file": "string",
"renamed_file": "string",
"deleted_file": "string"
}
}
最后修改时间: 1 个月前