summaryrefslogtreecommitdiff
path: root/lib/api/pipelines.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-02 20:21:14 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-02 20:21:14 +0900
commit54824e5b8f36c2ab2c41511bdc5e363e4c771124 (patch)
tree1aef39487177c9c3d8d932343f2633acd3283184 /lib/api/pipelines.rb
parent88224ccea67290e1bfa600379715ab278984ccdf (diff)
downloadgitlab-ce-merge-request-pipeline.tar.gz
Merge request pipelinemerge-request-pipeline
Diffstat (limited to 'lib/api/pipelines.rb')
-rw-r--r--lib/api/pipelines.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index 1cfb982c04b..ec34be3b414 100644
--- a/lib/api/pipelines.rb
+++ b/lib/api/pipelines.rb
@@ -58,7 +58,9 @@ module API
new_pipeline = Ci::CreatePipelineService.new(user_project,
current_user,
pipeline_params)
- .execute(:api, ignore_skip_ci: true, save_on_errors: false)
+ .execute(:api, ignore_skip_ci: true, save_on_errors: false).tap do |pipeline|
+ Ci::CreateMergeRequestPipelineService.new(pipeline).execute
+ end
if new_pipeline.persisted?
present new_pipeline, with: Entities::Pipeline