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
b12c19d3
Commit
b12c19d3
authored
May 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
360f1c6d
6f6ba5a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lib/api/internal.rb
lib/api/internal.rb
+2
-0
spec/requests/api/internal_spec.rb
spec/requests/api/internal_spec.rb
+3
-1
No files found.
lib/api/internal.rb
View file @
b12c19d3
...
...
@@ -265,6 +265,8 @@ module API
params
[
:changes
],
push_options
.
as_json
)
if
Feature
.
enabled?
(
:mr_push_options
,
default_enabled:
true
)
Gitlab
::
QueryLimiting
.
whitelist
(
'https://gitlab.com/gitlab-org/gitlab-ce/issues/61359'
)
mr_options
=
push_options
.
get
(
:merge_request
)
output
.
merge!
(
process_mr_push_options
(
mr_options
,
project
,
user
,
params
[
:changes
]))
if
mr_options
.
present?
end
...
...
spec/requests/api/internal_spec.rb
View file @
b12c19d3
...
...
@@ -959,7 +959,9 @@ describe API::Internal do
it
'creates a new merge request'
do
expect
do
post
api
(
'/internal/post_receive'
),
params:
valid_params
Sidekiq
::
Testing
.
fake!
do
post
api
(
'/internal/post_receive'
),
params:
valid_params
end
end
.
to
change
{
MergeRequest
.
count
}.
by
(
1
)
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