Fix method not allowed when merging MR
Description
When merging MR, the --when-pipeline-succeeds flag is by default set to true.
Due to that, if a project does not have any pipeline set, results in error method not allowed
.
This PR fixes this issue by checking if the merge request has a pipeline set. Also, on TTYs, users are prompted to confirm whether to merge when pipeline succeeds or not, if the MR has a pipeline set.
Related Issue
Resolves #674 (closed) Resolves #268 (closed)
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)