From 1286e335e677815fc33fad6ddb02d17b51b83075 Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:09:54 +0100 Subject: [PATCH] DROP ME keeps only issue_comment in gitub controller --- build/controllers/github.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/build/controllers/github.js b/build/controllers/github.js index d18d41da..7e56584c 100644 --- a/build/controllers/github.js +++ b/build/controllers/github.js @@ -299,17 +299,7 @@ async function processWebhook( } = {}, ) { const eventName = request.headers['x-github-event']; - if (eventName === 'push') { - return pushOnDefaultBranchWebhook(request); - } else if (eventName === 'pull_request') { - if (['opened', 'reopened', 'synchronize'].includes(request.payload.action)) { - return handleRA(request); - } - if (request.payload.action === 'closed') { - return handleCloseRA(request); - } - return `Ignoring ${request.payload.action} action`; - } else if (eventName === 'issue_comment') { + if (eventName === 'issue_comment') { return handleIssueComment(request); } else { return `Ignoring ${eventName} event`;