summaryrefslogtreecommitdiff
path: root/config/initializers/webhook_recursion_detection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/webhook_recursion_detection.rb')
-rw-r--r--config/initializers/webhook_recursion_detection.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/webhook_recursion_detection.rb b/config/initializers/webhook_recursion_detection.rb
new file mode 100644
index 00000000000..b345c005bac
--- /dev/null
+++ b/config/initializers/webhook_recursion_detection.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+Rails.application.configure do |config|
+ config.middleware.insert_after RequestStore::Middleware, Gitlab::Middleware::WebhookRecursionDetection
+end