Resources Pull Request Get Merge Preview
Get Merge Preview
Http Method
GET
End Point
/api/pull-requests/{requestId}/merge-preview
Placeholder Description Example
{requestId} Request Id 1
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"targetHeadCommitHash" : "string" ,
"headCommitHash" : "string" ,
"mergeStrategy" : "CREATE_MERGE_COMMIT" ,
"mergeCommitHash" : "string"
}
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> https://code.onedev.io/api/pull-requests/1/merge-preview
Please wait...
Page is in error, reload to recover