diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-05-03 04:20:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-05-03 04:20:58 +0000 |
commit | b12c19d3dec11b0ab1d6d5c171611e7178a5b733 (patch) | |
tree | b5443a889936e424146d97ed747793f1dc7cad6d | |
parent | 360f1c6de63e073bf0dfea984c017dab6a7baf02 (diff) | |
parent | 6f6ba5a9210fd517280de77fe76422a2b1eb6e5a (diff) | |
download | gitlab-ce-b12c19d3dec11b0ab1d6d5c171611e7178a5b733.tar.gz |
Automatic merge of gitlab-org/gitlab-ce master
-rw-r--r-- | lib/api/internal.rb | 2 | ||||
-rw-r--r-- | spec/requests/api/internal_spec.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index e96d0670d1a..fb972f0946b 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -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 diff --git a/spec/requests/api/internal_spec.rb b/spec/requests/api/internal_spec.rb index 88c19448373..bae0302f3ff 100644 --- a/spec/requests/api/internal_spec.rb +++ b/spec/requests/api/internal_spec.rb @@ -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 |