ReviewMergeRequest
Submits a review for a merge request.
Operation description
This API is for organizations that use the new merge request feature. You can verify this by checking if the merge request page in your organization is the new version.
Try it now
Test
RAM authorization
Request syntax
POST /api/v4/projects/{repositoryId}/merge_requests/{localId}/submit_review_opinion HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| repositoryId |
integer |
Yes |
The ID of the repository. |
2334743 |
| localId |
integer |
Yes |
The local ID of the merge request. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The ID of the organization. You can find the organization ID in the URL after you log on to the Alibaba Cloud DevOps console. For example, in the URL |
60de7a6852743a5162b5f957 |
| accessToken |
string |
No |
The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or a Security Token Service (STS) token for authentication. |
f0b1e61db5961df5975a93f9129d2513 |
| body |
object |
No |
The request body. |
|
| reviewOpinion |
string |
Yes |
The review opinion.
|
PASS |
| reviewComment |
string |
No |
The review comment. |
评论意见具体内容 |
| draftCommentIds |
array |
No |
The IDs of draft comments to submit with the review. |
|
|
string |
No |
The ID of a draft comment. |
f0b1e61db5961df5975a93f9129d2513 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorCode |
string |
The error code. |
Openapi.RequestError |
| errorMessage |
string |
The error message. |
"" |
| success |
boolean |
Indicates whether the request was successful. |
true |
| result |
object |
The returned data. |
|
| result |
boolean |
Indicates whether the review was submitted successfully. |
true |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "Openapi.RequestError",
"errorMessage": "\"\"",
"success": true,
"result": {
"result": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.