Welcome to mirror list, hosted at ThFree Co, Russian Federation.

service_hook_logs_controller.rb « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c814ea139fca8c574d04d5f929b551772fb7491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

class Projects::ServiceHookLogsController < Projects::HookLogsController
  before_action :service, only: [:show, :retry]

  def retry
    execute_hook
    redirect_to edit_project_service_path(@project, @service)
  end

  private

  def hook
    @hook ||= service.service_hook
  end

  def service
    @service ||= @project.find_or_initialize_service(params[:service_id])
  end
end