diff options
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb index 6a86f8ca729..b00f1826d50 100644 --- a/app/controllers/projects/pipelines_controller.rb +++ b/app/controllers/projects/pipelines_controller.rb @@ -20,9 +20,9 @@ class Projects::PipelinesController < Projects::ApplicationController .page(params[:page]) .per(30) - @running_count = limited_pipelines_count(project, 'running') - @pending_count = limited_pipelines_count(project, 'pending') - @finished_count = limited_pipelines_count(project, 'finished') + @running_count = limited_pipelines_count(project, "running") + @pending_count = limited_pipelines_count(project, "pending") + @finished_count = limited_pipelines_count(project, "finished") @pipelines_count = limited_pipelines_count(project) respond_to do |format| @@ -39,8 +39,8 @@ class Projects::PipelinesController < Projects::ApplicationController all: @pipelines_count, running: @running_count, pending: @pending_count, - finished: @finished_count - } + finished: @finished_count, + }, } end end @@ -58,7 +58,7 @@ class Projects::PipelinesController < Projects::ApplicationController if @pipeline.persisted? redirect_to project_pipeline_path(project, @pipeline) else - render 'new' + render "new" end end @@ -108,7 +108,7 @@ class Projects::PipelinesController < Projects::ApplicationController @stage = pipeline.legacy_stage(params[:stage]) return not_found unless @stage - render json: { html: view_to_html_string('projects/pipelines/_stage') } + render json: {html: view_to_html_string("projects/pipelines/_stage")} end def retry @@ -153,13 +153,13 @@ class Projects::PipelinesController < Projects::ApplicationController def render_show respond_to do |format| format.html do - render 'show' + render "show" end end end def show_represent_params - { grouped: true } + {grouped: true} end def create_params @@ -169,16 +169,16 @@ class Projects::PipelinesController < Projects::ApplicationController # rubocop: disable CodeReuse/ActiveRecord def pipeline @pipeline ||= project - .all_pipelines - .includes(user: :status) - .find_by!(id: params[:id]) - .present(current_user: current_user) + .all_pipelines + .includes(user: :status) + .find_by!(id: params[:id]) + .present(current_user: current_user) end # rubocop: enable CodeReuse/ActiveRecord def whitelist_query_limiting # Also see https://gitlab.com/gitlab-org/gitlab-ce/issues/42343 - Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42339') + Gitlab::QueryLimiting.whitelist("https://gitlab.com/gitlab-org/gitlab-ce/issues/42339") end def authorize_update_pipeline! |