summaryrefslogtreecommitdiff
path: root/app/controllers/projects/settings/integration_hook_logs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/settings/integration_hook_logs_controller.rb')
-rw-r--r--app/controllers/projects/settings/integration_hook_logs_controller.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/controllers/projects/settings/integration_hook_logs_controller.rb b/app/controllers/projects/settings/integration_hook_logs_controller.rb
new file mode 100644
index 00000000000..b3b5a292d42
--- /dev/null
+++ b/app/controllers/projects/settings/integration_hook_logs_controller.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+module Projects
+ module Settings
+ class IntegrationHookLogsController < Projects::HookLogsController
+ extend Gitlab::Utils::Override
+
+ before_action :integration, only: [:show, :retry]
+
+ def retry
+ execute_hook
+ redirect_to edit_project_settings_integration_path(@project, @integration)
+ end
+
+ private
+
+ def integration
+ @integration ||= @project.find_or_initialize_integration(params[:integration_id])
+ end
+
+ override :hook
+ def hook
+ @hook ||= integration.service_hook || not_found
+ end
+ end
+ end
+end