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
7335dffb
Commit
7335dffb
authored
Jan 14, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflict in merge request controller
parent
badfdf66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+0
-6
app/workers/auto_merge_worker.rb
app/workers/auto_merge_worker.rb
+1
-0
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
7335dffb
...
...
@@ -113,13 +113,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
return
access_denied!
unless
allowed_to_merge?
if
@merge_request
.
open?
&&
@merge_request
.
can_be_merged?
<<<<<<<
HEAD
AutoMergeWorker
.
perform_async
(
@merge_request
.
id
,
current_user
.
id
,
params
)
=======
@merge_request
.
should_remove_source_branch
=
params
[
:should_remove_source_branch
]
@merge_request
.
should_rebase
=
params
[
:should_rebase
]
@merge_request
.
automerge!
(
current_user
,
params
[
:commit_message
])
>>>>>>>
ee
/
master
@status
=
true
else
@status
=
false
...
...
app/workers/auto_merge_worker.rb
View file @
7335dffb
...
...
@@ -8,6 +8,7 @@ class AutoMergeWorker
current_user
=
User
.
find
(
current_user_id
)
merge_request
=
MergeRequest
.
find
(
merge_request_id
)
merge_request
.
should_remove_source_branch
=
params
[
:should_remove_source_branch
]
merge_request
.
should_rebase
=
params
[
:should_rebase
]
merge_request
.
automerge!
(
current_user
,
params
[
:commit_message
])
end
end
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