gnustavo / Git-Hooks

Framework for implementing Git (and Gerrit) hooks
http://search.cpan.org/dist/Git-Hooks/
41 stars 17 forks source link

Feature: OR-ed plugins #77

Open boudekerk opened 1 year ago

boudekerk commented 1 year ago

Fixes #76 Fixes #58 (CheckLog could be OR-ed with CheckJira)

Plugins separated by a pipe, will be OR-ed. This is in addition to, and can be combined with, the existing behaviour where any individually define plugins all need to match.

All defined plugins will be executed, and in the end we evaluate if any such "conditions" have failed.

boudekerk commented 1 year ago

I've added another commit which makes things a bit less ugly and allows us to log what was evaluated and how.

boudekerk commented 1 year ago

Even though functionally the same, I think doing it this way is a bit nicer.

@gnustavo Could you please share your thoughts?