@@ -753,7 +817,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid
| `target_branch` | string | no | The target branch |
| `title` | string | no | Title of MR |
| `assignee_id` | integer | no | The ID of the user to assign the merge request to. Set to `0` or provide an empty value to unassign all assignees. |
| `milestone_id` | integer | no | The ID of a milestone to assign the merge request to. Set to `0` or provide an empty value to unassign a milestone.|
| `milestone_id` | integer | no | The global ID of a milestone to assign the merge request to. Set to `0` or provide an empty value to unassign a milestone.|
| `labels` | string | no | Comma-separated label names for a merge request. Set to an empty string to unassign all labels. |
| `description` | string | no | Description of MR |
| `state_event` | string | no | New state (close/reopen) |
...
...
@@ -769,64 +833,99 @@ Must include at least one non-required attribute from above.
{
"id":1,
"iid":1,
"target_branch":"master",
"project_id":4,
"project_id":3,
"title":"test1",
"description":"fixed login page css paddings",
"state":"opened",
"created_at":"2017-04-29T08:46:00Z",
"updated_at":"2017-04-29T08:46:00Z",
"target_branch":"master",
"source_branch":"test1",
"upvotes":0,
"downvotes":0,
"author":{
"id":1,
"username":"admin",
"name":"Administrator",
"username":"admin",
"state":"active",
"avatar_url":null,
"web_url":"https://gitlab.example.com/admin"
},
"assignee":{
"id":1,
"username":"admin",
"name":"Administrator",
"username":"admin",
"state":"active",
"avatar_url":null,
"web_url":"https://gitlab.example.com/admin"
},
"source_project_id":3,
"target_project_id":4,
"labels":[],
"description":"description1",
"source_project_id":2,
"target_project_id":3,
"labels":[
"Community contribution",
"Manage"
],
"work_in_progress":false,
"milestone":{
"id":5,
"iid":1,
"project_id":4,
"project_id":3,
"title":"v2.0",
"description":"Assumenda aut placeat expedita exercitationem labore sunt enim earum.",