From aac8ef85b4b9d4aaa765c795a187463480de9812 Mon Sep 17 00:00:00 2001 From: Niek Palm Date: Tue, 29 Oct 2024 20:28:53 +0100 Subject: [PATCH] fix(webhook): result message webhook --- lambdas/functions/webhook/src/webhook/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lambdas/functions/webhook/src/webhook/index.ts b/lambdas/functions/webhook/src/webhook/index.ts index ddea935773..c62a8d4190 100644 --- a/lambdas/functions/webhook/src/webhook/index.ts +++ b/lambdas/functions/webhook/src/webhook/index.ts @@ -52,7 +52,10 @@ export async function publishOnEventBridge( let response: Response = { body: '', statusCode: 201 }; if (!checkBodySizeResult.sizeExceeded) { await publishEvent(config.eventBusName, `github`, eventType, body); - response = { statusCode: 201, body: 'Event sent successfully to EventBridge successfully.' }; + response = { + statusCode: 201, + body: `Event sent successfully to the EventBridge.`, + }; } else { await publishEvent(config.eventBusName, 'runners.webhook', `error.${eventType}`, checkBodySizeResult.message); logger.warn('Github event body size exceeded 256KB');