Add ability to skip hooks by branches

This commit is contained in:
Ivan Studinsky 2023-04-29 18:28:03 +07:00
parent 8656797c78
commit ff5fd29479
4 changed files with 30 additions and 1 deletions

View file

@ -110,6 +110,8 @@ MANIFEST_HOOK_DICT = cfgv.Map(
cfgv.Optional('files', check_string_regex, ''),
cfgv.Optional('exclude', check_string_regex, '^$'),
cfgv.Optional('branches', check_string_regex, ''),
cfgv.Optional('exclude_branches', check_string_regex, '^$'),
cfgv.Optional('types', cfgv.check_array(check_type_tag), ['file']),
cfgv.Optional('types_or', cfgv.check_array(check_type_tag), []),
cfgv.Optional('exclude_types', cfgv.check_array(check_type_tag), []),