gitlab-org--gitlab-foss/app/controllers/projects/service_hook_logs_controller.rb

21 lines
413 B
Ruby
Raw Normal View History

# 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