Commit 921141ae authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Filipa Lacerda

Serialize pipelines in the new merge request action

parent 45966b0a
...@@ -224,7 +224,14 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -224,7 +224,14 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end end
def new def new
define_new_vars respond_to do |format|
format.html { define_new_vars }
format.json do
render json: { pipelines: PipelineSerializer
.new(project: @project, user: @current_user)
.represent(@pipelines) }
end
end
end end
def new_diffs def new_diffs
......
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