Commit 9ef2acb4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve lib/api/triggers.rb by picking all EE codes

parent 77b3ea85
......@@ -21,7 +21,6 @@ module API
render_api_error!('variables needs to be a map of key-valued strings', 400)
end
<<<<<<< HEAD
project = find_project(params[:id])
not_found! unless project
......@@ -32,16 +31,6 @@ module API
render_api_error!(result[:message], result[:http_status])
else
present result[:pipeline], with: Entities::Pipeline
=======
# create request and trigger builds
result = Ci::CreateTriggerRequestService.execute(project, trigger, params[:ref].to_s, variables)
pipeline = result.pipeline
if pipeline.persisted?
present pipeline, with: Entities::Pipeline
else
render_validation_error!(pipeline)
>>>>>>> upstream/master
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment