Skip to content

Commit

Permalink
refactor!: Change default event type when none is specified
Browse files Browse the repository at this point in the history
Close is more interesting than Accept since it has more stats
  • Loading branch information
FoxxMD committed Feb 14, 2024
1 parent f985313 commit 39616ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/notifier/AbstractWebhookNotifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ export abstract class AbstractWebhookNotifier {
}
}
if(events.length === 0) {
// if still no events then notify on all
events.push({type: 'accept'});
// if still no events then only notify on close since it has the most interesting statistics
events.push({type: 'close'});
}

Expand Down

0 comments on commit 39616ca

Please sign in to comment.