gitlab-org--gitlab-foss/app/controllers/projects/service_hook_logs_controlle...

22 lines
550 B
Ruby

# frozen_string_literal: true
class Projects::ServiceHookLogsController < Projects::HookLogsController
before_action :integration, only: [:show, :retry]
def retry
execute_hook
redirect_to edit_project_service_path(@project, @integration)
end
private
def hook
@hook ||= integration.service_hook
end
def integration
@integration ||= @project.find_or_initialize_integration(params[:service_id])
@service = @integration # TODO: remove when https://gitlab.com/gitlab-org/gitlab/-/issues/330300 is complete
end
end