Add documentation for the 'only_allow_merge_if_build_succeeds.rb' feature

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-06-07 13:02:55 +02:00
parent 6dff7c1771
commit 282674c110
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,17 @@
Merge requests allow you to exchange changes you made to source code
## Only allow merge requests to be merged if the build succeeds
You can prevent merge requests from being merged if their build did not succeed
in the project settings page.
![only_allow_merge_if_build_succeeds](merge_requests/only_allow_merge_if_build_succeeds.png)
Navigate to project settings page and select the `Only allow merge requests to be merged if the build succeeds` check box.
Please note that you need to have builds configured to enable this feature.
## Checkout merge requests locally
Locate the section for your GitLab remote in the `.git/config` file. It looks like this:

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB