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
9429382f
Commit
9429382f
authored
Mar 02, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve merge conflicts
parent
988c4510
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
3 additions
and
94 deletions
+3
-94
Gemfile.lock
Gemfile.lock
+0
-3
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+0
-4
app/models/project.rb
app/models/project.rb
+0
-3
app/serializers/merge_request_entity.rb
app/serializers/merge_request_entity.rb
+0
-3
app/services/merge_requests/refresh_service.rb
app/services/merge_requests/refresh_service.rb
+0
-3
app/services/todo_service.rb
app/services/todo_service.rb
+2
-5
app/views/projects/blob/_actions.html.haml
app/views/projects/blob/_actions.html.haml
+1
-5
app/views/projects/merge_requests/merge.js.haml
app/views/projects/merge_requests/merge.js.haml
+0
-3
app/views/projects/merge_requests/widget/open/_accept.html.haml
...ews/projects/merge_requests/widget/open/_accept.html.haml
+0
-7
changelogs/unreleased/remove-new-relic-gem.yml
changelogs/unreleased/remove-new-relic-gem.yml
+0
-4
doc/api/enviroments.md
doc/api/enviroments.md
+0
-3
doc/api/merge_requests.md
doc/api/merge_requests.md
+0
-16
doc/api/projects.md
doc/api/projects.md
+0
-3
lib/api/entities.rb
lib/api/entities.rb
+0
-3
lib/api/v3/entities.rb
lib/api/v3/entities.rb
+0
-17
lib/api/v3/merge_requests.rb
lib/api/v3/merge_requests.rb
+0
-9
spec/services/merge_requests/refresh_service_spec.rb
spec/services/merge_requests/refresh_service_spec.rb
+0
-3
No files found.
Gemfile.lock
View file @
9429382f
...
@@ -346,11 +346,8 @@ GEM
...
@@ -346,11 +346,8 @@ GEM
grpc (1.1.2)
grpc (1.1.2)
google-protobuf (~> 3.1)
google-protobuf (~> 3.1)
googleauth (~> 0.5.1)
googleauth (~> 0.5.1)
<<<<<<< HEAD
gssapi (1.2.0)
gssapi (1.2.0)
ffi (>= 1.0.1)
ffi (>= 1.0.1)
=======
>>>>>>> ce/master
haml (4.0.7)
haml (4.0.7)
tilt
tilt
haml_lint (0.21.0)
haml_lint (0.21.0)
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
9429382f
...
@@ -10,13 +10,9 @@ class Projects::MergeRequestsController < Projects::ApplicationController
...
@@ -10,13 +10,9 @@ class Projects::MergeRequestsController < Projects::ApplicationController
before_action
:module_enabled
before_action
:module_enabled
before_action
:merge_request
,
only:
[
before_action
:merge_request
,
only:
[
:edit
,
:update
,
:show
,
:diffs
,
:commits
,
:conflicts
,
:conflict_for_path
,
:pipelines
,
:merge
,
:merge_check
,
:edit
,
:update
,
:show
,
:diffs
,
:commits
,
:conflicts
,
:conflict_for_path
,
:pipelines
,
:merge
,
:merge_check
,
<<<<<<<
HEAD
:ci_status
,
:ci_environments_status
,
:toggle_subscription
,
:cancel_merge_when_pipeline_succeeds
,
:remove_wip
,
:resolve_conflicts
,
:assign_related_issues
,
:ci_status
,
:ci_environments_status
,
:toggle_subscription
,
:cancel_merge_when_pipeline_succeeds
,
:remove_wip
,
:resolve_conflicts
,
:assign_related_issues
,
# EE
# EE
:approve
,
:approvals
,
:unapprove
,
:rebase
:approve
,
:approvals
,
:unapprove
,
:rebase
=======
:ci_status
,
:ci_environments_status
,
:toggle_subscription
,
:cancel_merge_when_pipeline_succeeds
,
:remove_wip
,
:resolve_conflicts
,
:assign_related_issues
>>>>>>>
ce
/
master
]
]
before_action
:validates_merge_request
,
only:
[
:show
,
:diffs
,
:commits
,
:pipelines
]
before_action
:validates_merge_request
,
only:
[
:show
,
:diffs
,
:commits
,
:pipelines
]
before_action
:define_show_vars
,
only:
[
:show
,
:diffs
,
:commits
,
:conflicts
,
:conflict_for_path
,
:builds
,
:pipelines
]
before_action
:define_show_vars
,
only:
[
:show
,
:diffs
,
:commits
,
:conflicts
,
:conflict_for_path
,
:builds
,
:pipelines
]
...
...
app/models/project.rb
View file @
9429382f
...
@@ -22,12 +22,9 @@ class Project < ActiveRecord::Base
...
@@ -22,12 +22,9 @@ class Project < ActiveRecord::Base
extend
Gitlab
::
ConfigHelper
extend
Gitlab
::
ConfigHelper
<<<<<<<
HEAD
=======
BoardLimitExceeded
=
Class
.
new
(
StandardError
)
BoardLimitExceeded
=
Class
.
new
(
StandardError
)
NUMBER_OF_PERMITTED_BOARDS
=
1
NUMBER_OF_PERMITTED_BOARDS
=
1
>>>>>>>
ce
/
master
UNKNOWN_IMPORT_URL
=
'http://unknown.git'
.
freeze
UNKNOWN_IMPORT_URL
=
'http://unknown.git'
.
freeze
cache_markdown_field
:description
,
pipeline: :description
cache_markdown_field
:description
,
pipeline: :description
...
...
app/serializers/merge_request_entity.rb
View file @
9429382f
...
@@ -8,11 +8,8 @@ class MergeRequestEntity < IssuableEntity
...
@@ -8,11 +8,8 @@ class MergeRequestEntity < IssuableEntity
expose
:merge_status
expose
:merge_status
expose
:merge_user_id
expose
:merge_user_id
expose
:merge_when_pipeline_succeeds
expose
:merge_when_pipeline_succeeds
<<<<<<<
HEAD
expose
:rebase_commit_sha
expose
:rebase_commit_sha
expose
:rebase_in_progress?
,
if:
{
type: :full
}
expose
:rebase_in_progress?
,
if:
{
type: :full
}
=======
>>>>>>>
ce
/
master
expose
:source_branch
expose
:source_branch
expose
:source_project_id
expose
:source_project_id
expose
:target_branch
expose
:target_branch
...
...
app/services/merge_requests/refresh_service.rb
View file @
9429382f
...
@@ -79,7 +79,6 @@ module MergeRequests
...
@@ -79,7 +79,6 @@ module MergeRequests
end
end
end
end
<<<<<<<
HEAD
# Note: Closed merge requests also need approvals reset.
# Note: Closed merge requests also need approvals reset.
def
reset_approvals_for_merge_requests
def
reset_approvals_for_merge_requests
merge_requests
=
merge_requests_for
(
@branch_name
,
mr_states:
[
:opened
,
:reopened
,
:closed
])
merge_requests
=
merge_requests_for
(
@branch_name
,
mr_states:
[
:opened
,
:reopened
,
:closed
])
...
@@ -96,8 +95,6 @@ module MergeRequests
...
@@ -96,8 +95,6 @@ module MergeRequests
end
end
end
end
=======
>>>>>>>
ce
/
master
def
reset_merge_when_pipeline_succeeds
def
reset_merge_when_pipeline_succeeds
merge_requests_for_source_branch
.
each
(
&
:reset_merge_when_pipeline_succeeds
)
merge_requests_for_source_branch
.
each
(
&
:reset_merge_when_pipeline_succeeds
)
end
end
...
...
app/services/todo_service.rb
View file @
9429382f
...
@@ -104,7 +104,6 @@ class TodoService
...
@@ -104,7 +104,6 @@ class TodoService
def
merge_request_build_failed
(
merge_request
)
def
merge_request_build_failed
(
merge_request
)
create_build_failed_todo
(
merge_request
,
merge_request
.
author
)
create_build_failed_todo
(
merge_request
,
merge_request
.
author
)
create_build_failed_todo
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
create_build_failed_todo
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
<<<<<<<
HEAD
end
end
# When new approvers are added for a merge request:
# When new approvers are added for a merge request:
...
@@ -113,8 +112,6 @@ class TodoService
...
@@ -113,8 +112,6 @@ class TodoService
#
#
def
add_merge_request_approvers
(
merge_request
,
approvers
)
def
add_merge_request_approvers
(
merge_request
,
approvers
)
create_approval_required_todos
(
merge_request
,
approvers
,
merge_request
.
author
)
create_approval_required_todos
(
merge_request
,
approvers
,
merge_request
.
author
)
=======
>>>>>>>
ce
/
master
end
end
# When a new commit is pushed to a merge request we should:
# When a new commit is pushed to a merge request we should:
...
@@ -134,7 +131,7 @@ class TodoService
...
@@ -134,7 +131,7 @@ class TodoService
mark_pending_todos_as_done
(
merge_request
,
merge_request
.
author
)
mark_pending_todos_as_done
(
merge_request
,
merge_request
.
author
)
mark_pending_todos_as_done
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
mark_pending_todos_as_done
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
end
end
# When a merge request could not be automatically merged due to its unmergeable state we should:
# When a merge request could not be automatically merged due to its unmergeable state we should:
#
#
# * create a todo for a merge_user
# * create a todo for a merge_user
...
@@ -142,7 +139,7 @@ class TodoService
...
@@ -142,7 +139,7 @@ class TodoService
def
merge_request_became_unmergeable
(
merge_request
)
def
merge_request_became_unmergeable
(
merge_request
)
create_unmergeable_todo
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
create_unmergeable_todo
(
merge_request
,
merge_request
.
merge_user
)
if
merge_request
.
merge_when_pipeline_succeeds?
end
end
# When create a note we should:
# When create a note we should:
#
#
# * mark all pending todos related to the noteable for the note author as done
# * mark all pending todos related to the noteable for the note author as done
...
...
app/views/projects/blob/_actions.html.haml
View file @
9429382f
...
@@ -19,12 +19,8 @@
...
@@ -19,12 +19,8 @@
tree_join
(
@commit
.
sha
,
@path
)),
class:
'btn btn-sm js-data-file-blob-permalink-url'
tree_join
(
@commit
.
sha
,
@path
)),
class:
'btn btn-sm js-data-file-blob-permalink-url'
-
if
current_user
-
if
current_user
<<<<<<<
HEAD
.btn-group
{
role:
"group"
}
=
lock_file_link
(
html_options:
{
class:
'btn btn-sm path-lock'
})
==
=====
.btn-group
{
role:
"group"
}
<
.btn-group
{
role:
"group"
}
<
>
>>>>>> ce/master
=
lock_file_link
(
html_options:
{
class:
'btn btn-sm path-lock'
})
-
if
blob_text_viewable?
(
@blob
)
-
if
blob_text_viewable?
(
@blob
)
=
edit_blob_link
=
edit_blob_link
=
replace_blob_link
=
replace_blob_link
...
...
app/views/projects/merge_requests/merge.js.haml
View file @
9429382f
...
@@ -5,12 +5,9 @@
...
@@ -5,12 +5,9 @@
-
when
:merge_when_pipeline_succeeds
-
when
:merge_when_pipeline_succeeds
:plain
:plain
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/merge_when_pipeline_succeeds'
))
}
");
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/merge_when_pipeline_succeeds'
))
}
");
<
<<<<<<
HEAD
-
when
:hook_validation_error
-
when
:hook_validation_error
:plain
:plain
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/error'
))
}
");
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/error'
))
}
");
==
=====
>
>>>>>> ce/master
-
when
:sha_mismatch
-
when
:sha_mismatch
:plain
:plain
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/sha_mismatch'
))
}
");
$('.mr-widget-body').html("
#{
escape_javascript
(
render
(
'projects/merge_requests/widget/open/sha_mismatch'
))
}
");
...
...
app/views/projects/merge_requests/widget/open/_accept.html.haml
View file @
9429382f
...
@@ -11,17 +11,10 @@
...
@@ -11,17 +11,10 @@
.accept-action
.accept-action
-
if
@pipeline
&&
@pipeline
.
active?
-
if
@pipeline
&&
@pipeline
.
active?
%span
.btn-group
%span
.btn-group
<
<<<<<<
HEAD
=
button_tag
class:
"btn btn-create js-merge-button merge_when_pipeline_succeeds"
,
disabled:
!
@merge_request
.
approved?
,
":disabled"
=>
"disableAcceptance"
do
=
button_tag
class:
"btn btn-create js-merge-button merge_when_pipeline_succeeds"
,
disabled:
!
@merge_request
.
approved?
,
":disabled"
=>
"disableAcceptance"
do
Merge When Pipeline Succeeds
Merge When Pipeline Succeeds
-
unless
@project
.
only_allow_merge_if_pipeline_succeeds?
-
unless
@project
.
only_allow_merge_if_pipeline_succeeds?
=
button_tag
class:
"btn btn-success dropdown-toggle"
,
'data-toggle'
=>
'dropdown'
,
disabled:
!
@merge_request
.
approved?
,
":disabled"
=>
"disableAcceptance"
do
=
button_tag
class:
"btn btn-success dropdown-toggle"
,
'data-toggle'
=>
'dropdown'
,
disabled:
!
@merge_request
.
approved?
,
":disabled"
=>
"disableAcceptance"
do
==
=====
=
button_tag
class:
"btn btn-create js-merge-button merge_when_pipeline_succeeds"
do
Merge
When
Pipeline
Succeeds
-
unless
@project
.
only_allow_merge_if_pipeline_succeeds?
=
button_tag
class:
"btn btn-success dropdown-toggle"
,
'data-toggle'
=>
'dropdown'
do
>
>>>>>> ce/master
=
icon
(
'caret-down'
)
=
icon
(
'caret-down'
)
%span
.sr-only
%span
.sr-only
Select Merge Moment
Select Merge Moment
...
...
changelogs/unreleased/remove-new-relic-gem.yml
View file @
9429382f
---
---
title
:
Remove the newrelic gem
title
:
Remove the newrelic gem
<<<<<<< HEAD
merge_request
:
1335
merge_request
:
1335
=======
merge_request
:
9622
>
>>>>>>
ce/master
author
:
Robert Schilling
author
:
Robert Schilling
doc/api/enviroments.md
View file @
9429382f
...
@@ -107,8 +107,6 @@ DELETE /projects/:id/environments/:environment_id
...
@@ -107,8 +107,6 @@ DELETE /projects/:id/environments/:environment_id
```
bash
```
bash
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v4/projects/1/environments/1"
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v4/projects/1/environments/1"
<<<<<<
< HEAD
=======
```
```
## Stop an environment
## Stop an environment
...
@@ -137,5 +135,4 @@ Example response:
...
@@ -137,5 +135,4 @@ Example response:
"slug"
:
"deploy"
,
"slug"
:
"deploy"
,
"external_url"
:
"https://deploy.example.gitlab.com"
"external_url"
:
"https://deploy.example.gitlab.com"
}
}
>>>>>>>
ce/master
```
```
doc/api/merge_requests.md
View file @
9429382f
...
@@ -480,23 +480,7 @@ Parameters:
...
@@ -480,23 +480,7 @@ Parameters:
-
`merge_commit_message`
(optional) - Custom merge commit message
-
`merge_commit_message`
(optional) - Custom merge commit message
-
`should_remove_source_branch`
(optional) - if
`true`
removes the source branch
-
`should_remove_source_branch`
(optional) - if
`true`
removes the source branch
-
`merge_when_pipeline_succeeds`
(optional) - if
`true`
the MR is merged when the pipeline succeeds
-
`merge_when_pipeline_succeeds`
(optional) - if
`true`
the MR is merged when the pipeline succeeds
<<<<<<< HEAD
-
`sha`
(optional) - if present, then this SHA must
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| string | yes | The ID of a project |
|
`merge_request_id`
| integer | yes | The ID of the merge request |
|
`merge_commit_message`
| string | no | Custom merge commit message |
|
`should_remove_source_branch`
| boolean | no | Remove the source branch after merge |
|
`merge_when_pipeline_succeeds`
| boolean | no | Merge when pipeline succeeds, rather than immediately |
|
`sha`
| string | no | If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail |
|
`squash`
| boolean | no | Squash the merge request into a single commit |
=======
-
`sha`
(optional) - if present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail
-
`sha`
(optional) - if present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail
>>>>>>> ce/master
```
json
```
json
{
{
...
...
doc/api/projects.md
View file @
9429382f
...
@@ -241,10 +241,7 @@ Parameters:
...
@@ -241,10 +241,7 @@ Parameters:
"group_access_level"
:
10
"group_access_level"
:
10
}
}
],
],
<<<<<<<
HEAD
"repository_storage"
:
"default"
,
"repository_storage"
:
"default"
,
=======
>>>>>>>
ce/master
"only_allow_merge_if_pipeline_succeeds"
:
false
,
"only_allow_merge_if_pipeline_succeeds"
:
false
,
"only_allow_merge_if_all_discussions_are_resolved"
:
false
,
"only_allow_merge_if_all_discussions_are_resolved"
:
false
,
"request_access_enabled"
:
false
"request_access_enabled"
:
false
...
...
lib/api/entities.rb
View file @
9429382f
...
@@ -111,10 +111,7 @@ module API
...
@@ -111,10 +111,7 @@ module API
SharedGroup
.
represent
(
project
.
project_group_links
.
all
,
options
)
SharedGroup
.
represent
(
project
.
project_group_links
.
all
,
options
)
end
end
expose
:only_allow_merge_if_pipeline_succeeds
expose
:only_allow_merge_if_pipeline_succeeds
<<<<<<<
HEAD
expose
:repository_storage
,
if:
lambda
{
|
_project
,
options
|
options
[
:current_user
].
try
(
:admin?
)
}
expose
:repository_storage
,
if:
lambda
{
|
_project
,
options
|
options
[
:current_user
].
try
(
:admin?
)
}
=======
>>>>>>>
ce
/
master
expose
:request_access_enabled
expose
:request_access_enabled
expose
:only_allow_merge_if_all_discussions_are_resolved
expose
:only_allow_merge_if_all_discussions_are_resolved
expose
:approvals_before_merge
expose
:approvals_before_merge
...
...
lib/api/v3/entities.rb
View file @
9429382f
...
@@ -46,7 +46,6 @@ module API
...
@@ -46,7 +46,6 @@ module API
expose
:awardable_id
,
:awardable_type
expose
:awardable_id
,
:awardable_type
end
end
<<<<<<<
HEAD
class
ApplicationSetting
<
Grape
::
Entity
class
ApplicationSetting
<
Grape
::
Entity
expose
:id
expose
:id
expose
:default_projects_limit
expose
:default_projects_limit
...
@@ -80,8 +79,6 @@ module API
...
@@ -80,8 +79,6 @@ module API
expose
:terminal_max_session_time
expose
:terminal_max_session_time
end
end
=======
>>>>>>>
ce
/
master
class
Project
<
Grape
::
Entity
class
Project
<
Grape
::
Entity
expose
:id
,
:description
,
:default_branch
,
:tag_list
expose
:id
,
:description
,
:default_branch
,
:tag_list
expose
:public?
,
as: :public
expose
:public?
,
as: :public
...
@@ -114,15 +111,10 @@ module API
...
@@ -114,15 +111,10 @@ module API
::
API
::
Entities
::
SharedGroup
.
represent
(
project
.
project_group_links
.
all
,
options
)
::
API
::
Entities
::
SharedGroup
.
represent
(
project
.
project_group_links
.
all
,
options
)
end
end
expose
:only_allow_merge_if_pipeline_succeeds
,
as: :only_allow_merge_if_build_succeeds
expose
:only_allow_merge_if_pipeline_succeeds
,
as: :only_allow_merge_if_build_succeeds
<<<<<<<
HEAD
expose
:repository_storage
,
if:
lambda
{
|
_project
,
options
|
options
[
:current_user
].
try
(
:admin?
)
}
expose
:repository_storage
,
if:
lambda
{
|
_project
,
options
|
options
[
:current_user
].
try
(
:admin?
)
}
expose
:request_access_enabled
expose
:request_access_enabled
expose
:only_allow_merge_if_all_discussions_are_resolved
expose
:only_allow_merge_if_all_discussions_are_resolved
expose
:approvals_before_merge
expose
:approvals_before_merge
=======
expose
:request_access_enabled
expose
:only_allow_merge_if_all_discussions_are_resolved
>>>>>>>
ce
/
master
expose
:statistics
,
using:
'API::Entities::ProjectStatistics'
,
if: :statistics
expose
:statistics
,
using:
'API::Entities::ProjectStatistics'
,
if: :statistics
end
end
...
@@ -157,7 +149,6 @@ module API
...
@@ -157,7 +149,6 @@ module API
expose
:merge_status
expose
:merge_status
expose
:diff_head_sha
,
as: :sha
expose
:diff_head_sha
,
as: :sha
expose
:merge_commit_sha
expose
:merge_commit_sha
<<<<<<<
HEAD
expose
:subscribed
do
|
merge_request
,
options
|
expose
:subscribed
do
|
merge_request
,
options
|
merge_request
.
subscribed?
(
options
[
:current_user
],
options
[
:project
])
merge_request
.
subscribed?
(
options
[
:current_user
],
options
[
:project
])
...
@@ -168,14 +159,6 @@ module API
...
@@ -168,14 +159,6 @@ module API
expose
:should_remove_source_branch?
,
as: :should_remove_source_branch
expose
:should_remove_source_branch?
,
as: :should_remove_source_branch
expose
:force_remove_source_branch?
,
as: :force_remove_source_branch
expose
:force_remove_source_branch?
,
as: :force_remove_source_branch
expose
:squash
expose
:squash
=======
expose
:subscribed
do
|
merge_request
,
options
|
merge_request
.
subscribed?
(
options
[
:current_user
],
options
[
:project
])
end
expose
:user_notes_count
expose
:should_remove_source_branch?
,
as: :should_remove_source_branch
expose
:force_remove_source_branch?
,
as: :force_remove_source_branch
>>>>>>>
ce
/
master
expose
:web_url
do
|
merge_request
,
options
|
expose
:web_url
do
|
merge_request
,
options
|
Gitlab
::
UrlBuilder
.
build
(
merge_request
)
Gitlab
::
UrlBuilder
.
build
(
merge_request
)
...
...
lib/api/v3/merge_requests.rb
View file @
9429382f
...
@@ -68,12 +68,7 @@ module API
...
@@ -68,12 +68,7 @@ module API
end
end
merge_requests
=
merge_requests
.
reorder
(
params
[
:order_by
]
=>
params
[
:sort
])
merge_requests
=
merge_requests
.
reorder
(
params
[
:order_by
]
=>
params
[
:sort
])
<<<<<<<
HEAD
present
paginate
(
merge_requests
),
with:
::
API
::
Entities
::
MergeRequest
,
current_user:
current_user
,
project:
user_project
=======
present
paginate
(
merge_requests
),
with:
::
API
::
V3
::
Entities
::
MergeRequest
,
current_user:
current_user
,
project:
user_project
present
paginate
(
merge_requests
),
with:
::
API
::
V3
::
Entities
::
MergeRequest
,
current_user:
current_user
,
project:
user_project
>>>>>>>
ce
/
master
end
end
desc
'Create a merge request'
do
desc
'Create a merge request'
do
...
@@ -226,11 +221,7 @@ module API
...
@@ -226,11 +221,7 @@ module API
present
merge_request
,
with:
::
API
::
V3
::
Entities
::
MergeRequest
,
current_user:
current_user
,
project:
user_project
present
merge_request
,
with:
::
API
::
V3
::
Entities
::
MergeRequest
,
current_user:
current_user
,
project:
user_project
end
end
<<<<<<<
HEAD
desc
'Cancel merge if "Merge When Pipeline Succeeds" is enabled'
do
=======
desc
'Cancel merge if "Merge When Build succeeds" is enabled'
do
desc
'Cancel merge if "Merge When Build succeeds" is enabled'
do
>>>>>>>
ce
/
master
success
::
API
::
V3
::
Entities
::
MergeRequest
success
::
API
::
V3
::
Entities
::
MergeRequest
end
end
post
"
#{
path
}
/cancel_merge_when_build_succeeds"
do
post
"
#{
path
}
/cancel_merge_when_build_succeeds"
do
...
...
spec/services/merge_requests/refresh_service_spec.rb
View file @
9429382f
...
@@ -70,10 +70,7 @@ describe MergeRequests::RefreshService, services: true do
...
@@ -70,10 +70,7 @@ describe MergeRequests::RefreshService, services: true do
it
{
expect
(
@merge_request
.
notes
).
not_to
be_empty
}
it
{
expect
(
@merge_request
.
notes
).
not_to
be_empty
}
it
{
expect
(
@merge_request
).
to
be_open
}
it
{
expect
(
@merge_request
).
to
be_open
}
<<<<<<<
HEAD
it
{
expect
(
@merge_request
.
approvals
).
to
be_empty
}
it
{
expect
(
@merge_request
.
approvals
).
to
be_empty
}
=======
>>>>>>>
ce
/
master
it
{
expect
(
@merge_request
.
merge_when_pipeline_succeeds
).
to
be_falsey
}
it
{
expect
(
@merge_request
.
merge_when_pipeline_succeeds
).
to
be_falsey
}
it
{
expect
(
@merge_request
.
diff_head_sha
).
to
eq
(
@newrev
)
}
it
{
expect
(
@merge_request
.
diff_head_sha
).
to
eq
(
@newrev
)
}
it
{
expect
(
@fork_merge_request
).
to
be_open
}
it
{
expect
(
@fork_merge_request
).
to
be_open
}
...
...
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