Skip to content

Commit

Permalink
DROP ME keeps only issue_comment in gitub controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Nov 19, 2024
1 parent 8e4097e commit 1286e33
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build/controllers/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit 1286e33

Please sign in to comment.