Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 8099c17

Browse files
authored
fix(webhook): result message webhook (#4221)
## Problem Webhook result message contains twice successfully
1 parent 380bcaf commit 8099c17

File tree

1 file changed

+4
-1
lines changed
  • lambdas/functions/webhook/src/webhook

1 file changed

+4
-1
lines changed

Diff for: lambdas/functions/webhook/src/webhook/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export async function publishOnEventBridge(
5252
let response: Response = { body: '', statusCode: 201 };
5353
if (!checkBodySizeResult.sizeExceeded) {
5454
await publishEvent(config.eventBusName, `github`, eventType, body);
55-
response = { statusCode: 201, body: 'Event sent successfully to EventBridge successfully.' };
55+
response = {
56+
statusCode: 201,
57+
body: `Event sent successfully to the EventBridge.`,
58+
};
5659
} else {
5760
await publishEvent(config.eventBusName, 'runners.webhook', `error.${eventType}`, checkBodySizeResult.message);
5861
logger.warn('Github event body size exceeded 256KB');

0 commit comments

Comments
 (0)