l git: allow hooks to be set individually
This commit is contained in:
parent
51cb5bb1f1
commit
bbc966fc7b
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user