@@ -482,19 +482,15 @@ func (s *MergeRequestsService) AcceptMergeRequest(pid interface{}, mergeRequest
returnm,resp,err
}
// CancelMergeWhenPipelineSucceeds Cancels a merge when pipeline succeeds
//
// When reviewing a merge request that looks ready to merge but still has one or more CI jobs running, you can set it to be merged automatically when the jobs pipeline succeeds.
// This action cancels this automatic merge, hence the merge request will not be merged automatically upon a successful pipeline run.
// see https://docs.gitlab.com/ce/user/project/merge_requests/merge_when_pipeline_succeeds.html for further explanations.
//
// If you don't have permissions to accept this merge request - you'll get a 401
// If the merge request is already merged or closed - you get 405 and error message 'Method Not Allowed'
// In case the merge request is not set to be merged when the pipeline succeeds, you'll also get a 406 error.
// CancelMergeWhenPipelineSucceeds cancels a merge when pipeline succeeds. If
// you don't have permissions to accept this merge request - you'll get a 401.
// If the merge request is already merged or closed - you get 405 and error
// message 'Method Not Allowed'. In case the merge request is not set to be
// merged when the pipeline succeeds, you'll also get a 406 error.