2018-09-25 23:45:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-04-27 06:08:57 -04:00
|
|
|
class Projects::HookLogsController < Projects::ApplicationController
|
|
|
|
before_action :authorize_admin_project!
|
|
|
|
|
2022-08-31 08:13:01 -04:00
|
|
|
include WebHooks::HookLogActions
|
2017-04-27 06:08:57 -04:00
|
|
|
|
|
|
|
layout 'project_settings'
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def hook
|
|
|
|
@hook ||= @project.hooks.find(params[:hook_id])
|
|
|
|
end
|
|
|
|
|
2022-08-31 08:13:01 -04:00
|
|
|
def after_retry_redirect_path
|
|
|
|
edit_project_hook_path(@project, hook)
|
2017-04-27 06:08:57 -04:00
|
|
|
end
|
|
|
|
end
|