summaryrefslogtreecommitdiff
path: root/doc/workflow/merge_when_build_succeeds.md
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-12-02 13:28:21 +0100
committerZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-12-02 13:28:21 +0100
commit25907ebe476a24bfdd2c451f18227d4fcf314b07 (patch)
tree0e4b8913ca2b01a16884a8fe6e14dbfa367e2c5c /doc/workflow/merge_when_build_succeeds.md
parenta7682f8775a4609ac8c70151ffe8f3ccf3b767b6 (diff)
downloadgitlab-ce-25907ebe476a24bfdd2c451f18227d4fcf314b07.tar.gz
Doc feature Merge When Build Succeeds
Diffstat (limited to 'doc/workflow/merge_when_build_succeeds.md')
-rw-r--r--doc/workflow/merge_when_build_succeeds.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/workflow/merge_when_build_succeeds.md b/doc/workflow/merge_when_build_succeeds.md
new file mode 100644
index 00000000000..9bf6ddcc569
--- /dev/null
+++ b/doc/workflow/merge_when_build_succeeds.md
@@ -0,0 +1,20 @@
+# Merge When Build Succeeds
+
+Select a Merge Request to be merged if the build succeeds so the user does not have to wait for the build to finish and revisit the Merge Request to merge it after the build is done.
+
+## Enabling for a Merge Request
+
+Given an active build for a Merge Request, thus pending or running, a `Merge When Build Succeeds` button will appear to any user which can merge it. Once clicked, it ensures this merge request is merged when the build is successful.
+When clicking the button, the merge parameters are also saved to allow the merge user to edit the commit message and remove the source branch if he can remove that branch.
+
+When this feature is enabled, a message will appear to notify other users. Also a note is posted on the thread.
+
+![Enable Merge When Build Succceeds](merge_requests/enable_merge_when_build_succeeds.png)
+
+## Canceling
+
+The automatic merge can be disabled by clicking the `Cancel Automatic Merge` button, or when a new commit is added to the Merge Request. In the former case a note is posted. In the latter case a user able to merge can enable the feature again.
+
+![Disable the automatic merge](merge_requests/disable_merge_when_build_succeeds.png)
+
+A failed build does not reset the automatic build so a build can be retried.