diff options
Diffstat (limited to 'app/models/integrations/pumble.rb')
-rw-r--r-- | app/models/integrations/pumble.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/integrations/pumble.rb b/app/models/integrations/pumble.rb index 17026410eb1..e08dc6d0f51 100644 --- a/app/models/integrations/pumble.rb +++ b/app/models/integrations/pumble.rb @@ -36,7 +36,7 @@ module Integrations def default_fields [ - { type: 'text', name: 'webhook', placeholder: "https://api.pumble.com/workspaces/x/...", required: true }, + { type: 'text', name: 'webhook', help: 'https://api.pumble.com/workspaces/x/...', required: true }, { type: 'checkbox', name: 'notify_only_broken_pipelines' }, { type: 'select', @@ -51,7 +51,7 @@ module Integrations def notify(message, opts) header = { 'Content-Type' => 'application/json' } - response = Gitlab::HTTP.post(webhook, headers: header, body: { text: message.summary }.to_json) + response = Gitlab::HTTP.post(webhook, headers: header, body: Gitlab::Json.dump({ text: message.summary })) response if response.success? end |