From 5367bd6134a20ac59a6d35d165cc8db44c5a0384 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 2 Oct 2022 08:48:56 +0000 Subject: [PATCH] show webhook details --- apps/api/src/routes/webhooks/github/handlers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/src/routes/webhooks/github/handlers.ts b/apps/api/src/routes/webhooks/github/handlers.ts index 5124be0ef..8e8974553 100644 --- a/apps/api/src/routes/webhooks/github/handlers.ts +++ b/apps/api/src/routes/webhooks/github/handlers.ts @@ -148,6 +148,7 @@ export async function gitHubEvents(request: FastifyRequest): Promi const pullmergeRequestId = body.number.toString(); const pullmergeRequestAction = body.action; const sourceBranch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref; + console.log({sourceBranch, sourceRepository: body.pull_request.head.repo.full_name}) if (!allowedActions.includes(pullmergeRequestAction)) { throw { status: 500, message: 'Action not allowed.' } }