Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #660 from gitcoindev/fix-654-unexpected-unassign
Browse files Browse the repository at this point in the history
fix: skip wildcard handlers for push event
  • Loading branch information
0x4007 authored Aug 23, 2023
2 parents f4751d1 + 1f109d1 commit 8646aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export const bindEvents = async (context: Context): Promise<void> => {
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) {
Expand Down

0 comments on commit 8646aa1

Please sign in to comment.