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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
ccdf687b
Commit
ccdf687b
authored
Sep 15, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port fast-forward merge request setting from EE
parent
08db3782
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
app/views/projects/_merge_request_fast_forward_settings.html.haml
...s/projects/_merge_request_fast_forward_settings.html.haml
+13
-0
app/views/projects/_merge_request_merge_settings.html.haml
app/views/projects/_merge_request_merge_settings.html.haml
+0
-22
app/views/projects/_merge_request_settings.html.haml
app/views/projects/_merge_request_settings.html.haml
+13
-0
No files found.
app/views/projects/_merge_request_fast_forward_settings.html.haml
0 → 100644
View file @
ccdf687b
-
form
=
local_assigns
.
fetch
(
:form
)
-
project
=
local_assigns
.
fetch
(
:project
)
.radio
=
label_tag
:project_merge_method_ff
do
=
form
.
radio_button
:merge_method
,
:ff
,
class:
"js-merge-method-radio"
%strong
Fast-forward merge
%br
%span
.descr
No merge commits are created and all merges are fast-forwarded, which means that merging is only allowed if the branch could be fast-forwarded.
%br
%span
.descr
When fast-forward merge is not possible, the user must first rebase locally.
app/views/projects/_merge_request_merge_settings.html.haml
View file @
ccdf687b
-
form
=
local_assigns
.
fetch
(
:form
)
-
form
=
local_assigns
.
fetch
(
:form
)
.form-group
=
label_tag
:merge_method_merge
,
class:
'label-light'
do
Merge method
.radio
=
label_tag
:project_merge_method_merge
do
=
form
.
radio_button
:merge_method
,
:merge
,
class:
"js-merge-method-radio"
%strong
Merge commit
%br
%span
.descr
A merge commit is created for every merge, and merging is allowed as long as there are no conflicts.
.radio
=
label_tag
:project_merge_method_ff
do
=
form
.
radio_button
:merge_method
,
:ff
,
class:
"js-merge-method-radio"
%strong
Fast-forward merge
%br
%span
.descr
No merge commits are created and all merges are fast-forwarded, which means that merging is only allowed if the branch could be fast-forwarded.
%br
%span
.descr
When fast-forward merge is not possible, the user must first rebase locally.
.form-group
.form-group
.checkbox.builds-feature
{
class:
(
"hidden"
if
@project
&&
@project
.
project_feature
.
send
(
:builds_access_level
)
==
0
)
}
.checkbox.builds-feature
{
class:
(
"hidden"
if
@project
&&
@project
.
project_feature
.
send
(
:builds_access_level
)
==
0
)
}
=
form
.
label
:only_allow_merge_if_pipeline_succeeds
do
=
form
.
label
:only_allow_merge_if_pipeline_succeeds
do
...
...
app/views/projects/_merge_request_settings.html.haml
View file @
ccdf687b
-
form
=
local_assigns
.
fetch
(
:form
)
-
form
=
local_assigns
.
fetch
(
:form
)
.form-group
=
label_tag
:merge_method_merge
,
class:
'label-light'
do
Merge method
.radio
=
label_tag
:project_merge_method_merge
do
=
form
.
radio_button
:merge_method
,
:merge
,
class:
"js-merge-method-radio"
%strong
Merge commit
%br
%span
.descr
A merge commit is created for every merge, and merging is allowed as long as there are no conflicts.
=
render
'merge_request_fast_forward_settings'
,
project:
@project
,
form:
form
=
render
'projects/merge_request_merge_settings'
,
form:
form
=
render
'projects/merge_request_merge_settings'
,
form:
form
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