Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reject merge request in GitLab?

Tags:

git

gitlab

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?

like image 342
Anil Avatar asked Aug 20 '19 15:08

Anil


People also ask

How do I reject a merge request on GitHub?

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.

Can I cancel a merge request?

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.

How do I revoke a merge request in git?

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.


2 Answers

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.

like image 85
Tomislav Milanović Avatar answered Oct 03 '22 23:10

Tomislav Milanović


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

like image 29
Scott Gustafson Avatar answered Oct 03 '22 23:10

Scott Gustafson