Trying to merge a merge request containing a merge conflict via the GitLab API results in HTTP status405 Method Not Allowedinstead of HTTP status406 Branch cannot be merged. Steps to reproduce Create two merge requests editing the same code line Merge one of them Try to merge the second one...
= "checking": break time.sleep(0.5) merge_request.save() merge_request.merge() print('Merge ' + source_branch + ' into ' + target_branch + ' done.') except Exception as e: print("Merge error:", e) How do I differentiate between "405 Method Not Allowed" due to the source ...
405 405 Method Not Allowed The merge request is not able to be merged. 409 SHA does not match HEAD of source branch The provided sha parameter does not match the HEAD of the source. 422 Branch cannot be merged The merge request failed to merge.For additional important notes on response da...
404 – Not Found : This means that the resource you’re trying to fetch dose not exist. For example, you try to request an issue by its ID, but that issue could not be found. 405 – Method not allowed : This means that GitLab does not support the request you try to perform. 409...
need_rebase: The merge request must be rebased. not_approved: Approval is required before merge. not_open: The merge request must be open before merge. requested_changes: The merge request has reviewers who have requested changes. unchecked: Git has not yet tested if a valid merge is possib...
Problem When I'm trying to merge a merge request via the ProjectMergeRequest.merge function and with "should_remove_source_branch" and/or "merge_when_pipeline_succeeds", I get the HTTP Code 405 with the message Method not allowed back. E...
merge_when_build_succeeds=trueThis works fine as long as the project is *not* marked as "Only allow merge requests to be merged if the build succeeds". When that options is on, we get a `405 - Method Not Allowed`. This looks very strange... are we doing something wrong?We are ...
405 Method Not Allowed The request isn't supported. 409 Conflict A conflicting resource already exists. For example, creating a project with a name that already exists. 412 Precondition Failed The request was denied. This can happen if the If-Unmodified-Since header is provided when trying to ...
If merge success you get 200 OK. If it has some conflicts and can not be merged - you get 405 and error message 'Branch cannot be merged'. If merge request is already merged or closed - you get 405 and error message 'Method Not Allowed' If you don't have permissions to accept ...
405 Method Not Allowed- The request is not supported 409 Conflict- A conflicting resource already exists, e.g. creating a project with a name that already exists 422 Unprocessable- The entity could not be processed 500 Server Error- While handling the request something went wrong on the server...