2019-12-17 10:08:15 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::ServiceHookLogsController < Projects::HookLogsController
|
2021-07-14 14:08:31 -04:00
|
|
|
extend Gitlab::Utils::Override
|
|
|
|
|
2021-06-23 14:07:10 -04:00
|
|
|
before_action :integration, only: [:show, :retry]
|
2019-12-17 10:08:15 -05:00
|
|
|
|
|
|
|
def retry
|
|
|
|
execute_hook
|
2021-06-23 14:07:10 -04:00
|
|
|
redirect_to edit_project_service_path(@project, @integration)
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2021-06-23 14:07:10 -04:00
|
|
|
def integration
|
|
|
|
@integration ||= @project.find_or_initialize_integration(params[:service_id])
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
2021-07-14 14:08:31 -04:00
|
|
|
|
|
|
|
override :hook
|
|
|
|
def hook
|
|
|
|
@hook ||= integration.service_hook || not_found
|
|
|
|
end
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|