From 58f4169543cdb2e8be210207603004502bc4d589 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Wed, 26 Jul 2023 00:11:48 +0200 Subject: [PATCH] fix(slack): add empty line before escape lines Signed-off-by: Miguel Martinez Trivino --- app/controlplane/plugins/core/slack-webhook/v1/slack_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controlplane/plugins/core/slack-webhook/v1/slack_webhook.go b/app/controlplane/plugins/core/slack-webhook/v1/slack_webhook.go index 3a5dd5bd5..c3acb8e83 100644 --- a/app/controlplane/plugins/core/slack-webhook/v1/slack_webhook.go +++ b/app/controlplane/plugins/core/slack-webhook/v1/slack_webhook.go @@ -101,7 +101,7 @@ func (i *Integration) Execute(_ context.Context, req *sdk.ExecutionRequest) erro return fmt.Errorf("error summarizing the request: %w", err) } - msg := fmt.Sprintf("\nNew attestation received!```\n%s\n```\n", summary) + msg := fmt.Sprintf("\nNew attestation received!\n```\n%s\n```\n", summary) webhookURL := req.RegistrationInfo.Credentials.Password if err := executeWebhook(webhookURL, msg); err != nil {