From c73cbc93e0e8654c3da259d480f5cb0591e814c6 Mon Sep 17 00:00:00 2001 From: Korrrba Date: Wed, 23 Aug 2023 14:30:11 +0200 Subject: [PATCH] fix: skip wildcard handlers for push event Resolves: #654 --- src/bindings/event.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/event.ts b/src/bindings/event.ts index c90cf32c0..3ea42f287 100644 --- a/src/bindings/event.ts +++ b/src/bindings/event.ts @@ -115,8 +115,8 @@ export const bindEvents = async (context: Context): Promise => { await postAction(); } - // Skip wildcard handlers for installation event - if (eventName !== GithubEvent.INSTALLATION_ADDED_EVENT) { + // Skip wildcard handlers for installation event and push event + if (eventName !== GithubEvent.INSTALLATION_ADDED_EVENT && eventName !== GithubEvent.PUSH_EVENT) { // Run wildcard handlers logger.info(`Running wildcard handlers: ${wildcardProcessors.map((fn) => fn.name)}`); for (const wildcardProcessor of wildcardProcessors) {