From 205084572d33e5a079525a2aed135c6e37d61b16 Mon Sep 17 00:00:00 2001 From: Manuel Meurer Date: Wed, 12 Jun 2024 20:23:55 +0200 Subject: [PATCH] dont create any new webhooks --- app/services/gemmies/add_webhook.rb | 19 ------------------- app/services/gemmies/create.rb | 1 - 2 files changed, 20 deletions(-) delete mode 100644 app/services/gemmies/add_webhook.rb diff --git a/app/services/gemmies/add_webhook.rb b/app/services/gemmies/add_webhook.rb deleted file mode 100644 index 6f053f2..0000000 --- a/app/services/gemmies/add_webhook.rb +++ /dev/null @@ -1,19 +0,0 @@ -require "gems" - -module Gemmies - class AddWebhook < Baseline::Service - IGNORED_ERROR_MESSAGE = /has already been registered/ - - def call(gemmy) - return unless Gems.key.present? - - begin - Gems.add_web_hook gemmy.name, api_releases_url - rescue Gems::GemError => error - unless IGNORED_ERROR_MESSAGE.match?(error.message) - raise error - end - end - end - end -end diff --git a/app/services/gemmies/create.rb b/app/services/gemmies/create.rb index 04ad7bf..4b40fd6 100644 --- a/app/services/gemmies/create.rb +++ b/app/services/gemmies/create.rb @@ -43,7 +43,6 @@ def call(name) gemmy = Gemmy.create!(name: name) - AddWebhook.call_async gemmy Process.call_async gemmy gemmy