Is there any way in GitLab UI to reject a merge request because code has issue?
If not what is the right way to track this?
Under your repository name, click Pull requests. In the list of pull requests, click the pull request you'd like to review. On the "Conversation" tab, scroll to the review you'd like to dismiss, then click . Click , then click Dismiss review.
How do I cancel a git merge? Use git-reset or git merge --abort to cancel a merge that had conflicts. Please note that all the changes will be reset, and this operation cannot be reverted, so make sure to commit or git-stash all your changes before you start a merge.
You can undo a Git merge using the git reset –merge command. This command changes all files that are different between your current repository and a particular commit. There is no “git undo merge” command but the git reset command works well to undo a merge.
You can always close the merge request without merging the branches. However, the standard workflow is that, if you find some issues with the code, you can comment the specific lines of code if you go to "Changes" or comment the whole merge request and suggest possible improvements. Then the developer can resolve those code issues you found. That is what merge requests are for.
I agree with Phil Lucks. In my opinion gitlab is missing functionality. A merge request is a request and as such should be able to be rejected/denied.
The following thread gives insight into the thought process that was going on with Closing a request versus denying one. https://gitlab.com/gitlab-org/gitlab-foss/-/issues/23355
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With