Feature: Webhooks (#489)

This commit is contained in:
Subin T P
2020-02-14 23:19:17 +05:30
committed by GitHub
parent 79a847aeab
commit 919261d843
29 changed files with 566 additions and 214 deletions

7
lib/webhooks/trigger.rb Normal file
View File

@@ -0,0 +1,7 @@
class Webhooks::Trigger
def self.execute(url, payload)
RestClient.post(url, payload)
rescue StandardError => e
Raven.capture_exception(e)
end
end