Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
34850dc4
Commit
34850dc4
authored
Sep 05, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move "Only allow merge requests to be merged if the build succeeds" to new location
parent
632c4891
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
app/views/projects/_merge_request_settings.html.haml
app/views/projects/_merge_request_settings.html.haml
+2
-1
doc/user/project/merge_requests/img/merge_when_build_succeeds_only_if_succeeds_msg.png
...ts/img/merge_when_build_succeeds_only_if_succeeds_msg.png
+0
-0
doc/user/project/merge_requests/img/merge_when_build_succeeds_only_if_succeeds_settings.png
...g/merge_when_build_succeeds_only_if_succeeds_settings.png
+0
-0
doc/user/project/merge_requests/merge_when_build_succeeds.md
doc/user/project/merge_requests/merge_when_build_succeeds.md
+18
-0
No files found.
app/views/projects/_merge_request_settings.html.haml
View file @
34850dc4
<
<<<<<<
HEAD
%fieldset
.merge-request-feature.append-bottom-default
%h5
.prepend-top-0
Merge
requests
...
...
@@ -85,7 +86,7 @@
%strong
Only
allow
merge
requests
to
be
merged
if
the
build
succeeds
.help-block
Builds
need
to
be
configured
to
enable
this
feature
.
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'
workflow/merge_request
s'
,
anchor:
'only-allow-merge-requests-to-be-merged-if-the-build-succeeds'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'
user/project/merge_requests/merge_when_build_succeed
s'
,
anchor:
'only-allow-merge-requests-to-be-merged-if-the-build-succeeds'
)
:javascript
new
UsersSelect
();
doc/user/project/merge_requests/img/merge_when_build_succeeds_only_if_succeeds_msg.png
0 → 100644
View file @
34850dc4
10.9 KB
doc/
workflow/merge_requests/only_allow_merge_if_build_succeed
s.png
→
doc/
user/project/merge_requests/img/merge_when_build_succeeds_only_if_succeeds_setting
s.png
View file @
34850dc4
File moved
doc/user/project/merge_requests/merge_when_build_succeeds.md
View file @
34850dc4
...
...
@@ -26,3 +26,21 @@ When the builds are retried and succeed on the second try, the merge request
will automatically be merged after all. When the merge request is updated with
new commits, the automatic merge is automatically canceled to allow the new
changes to be reviewed.
## Only allow merge requests to be merged if the build succeeds
> **Note:**
You need to have builds configured to enable this feature.
You can prevent merge requests from being merged if their build did not succeed.
Navigate to your project's settings page, select the
**Only allow merge requests to be merged if the build succeeds**
check box and
hit
**Save**
for the changes to take effect.
![
Only allow merge if build succeeds settings
](
img/merge_when_build_succeeds_only_if_succeeds_settings.png
)
From now on, every time the build fails you will not be able to merge the merge
request from the UI, until you make the build pass.
![
Only allow merge if build succeeds msg
](
img/merge_when_build_succeeds_only_if_succeeds_msg.png
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment