l git: allow hooks to be set individually

This commit is contained in:
lassulus 2017-08-21 12:40:29 +02:00
parent 51cb5bb1f1
commit bbc966fc7b

View File

@ -80,7 +80,7 @@ let
public = true; public = true;
}; };
make-restricted-repo = name: { collaborators ? [], announce ? false, ... }: { make-restricted-repo = name: { collaborators ? [], announce ? false, hooks ? {}, ... }: {
inherit collaborators name; inherit collaborators name;
public = false; public = false;
hooks = optionalAttrs announce { hooks = optionalAttrs announce {
@ -93,7 +93,7 @@ let
# TODO define branches in some kind of option per repo # TODO define branches in some kind of option per repo
branches = [ "master" "staging*" ]; branches = [ "master" "staging*" ];
}; };
}; } // hooks;
}; };
make-rules = make-rules =