Attempt to add a mechanism for tagging hooks

This commit is contained in:
Josh Abrams 2022-11-12 02:06:55 -05:00
parent 1f59f4cba8
commit 189490a938
8 changed files with 67 additions and 8 deletions

View file

@ -3,3 +3,5 @@
entry: bin/hook.sh
language: script
files: ''
tags:
- foo

View file

@ -67,6 +67,7 @@ def run_opts(
color=False,
verbose=False,
hook=None,
tags=(),
remote_branch='',
local_branch='',
from_ref='',
@ -84,12 +85,14 @@ def run_opts(
):
# These are mutually exclusive
assert not (all_files and files)
assert not (hook and tags)
return auto_namedtuple(
all_files=all_files,
files=files,
color=color,
verbose=verbose,
hook=hook,
tags=tags,
remote_branch=remote_branch,
local_branch=local_branch,
from_ref=from_ref,