summaryrefslogtreecommitdiffstats
path: root/lass/2configs/git.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-07-21 09:11:08 +0200
committermakefu <github@syntax-fehler.de>2017-07-21 09:11:08 +0200
commit77ea3dc79ba5c82663977755d673d2c8f8fdd0b1 (patch)
treeb030977f43c10cd13968836aff6f91dacfb849b2 /lass/2configs/git.nix
parent0cce2f9d14766dc29674c098fe84aaca0adc7876 (diff)
parent8bfcf85531c4b8455c301504ccd74f95487e86d0 (diff)
Merge branch 'master' of prism:stockholm
Diffstat (limited to 'lass/2configs/git.nix')
-rw-r--r--lass/2configs/git.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/lass/2configs/git.nix b/lass/2configs/git.nix
index 4137c482e..a66d08927 100644
--- a/lass/2configs/git.nix
+++ b/lass/2configs/git.nix
@@ -49,6 +49,7 @@ let
{
brain = {
collaborators = with config.krebs.users; [ tv makefu ];
+ announce = true;
};
} //
import <secrets/repos.nix> { inherit config lib pkgs; }
@@ -75,9 +76,20 @@ let
public = true;
};
- make-restricted-repo = name: { collaborators ? [], ... }: {
+ make-restricted-repo = name: { collaborators ? [], announce ? false, ... }: {
inherit collaborators name;
public = false;
+ hooks = optionalAttrs announce {
+ post-receive = pkgs.git-hooks.irc-announce {
+ # TODO make nick = config.krebs.build.host.name the default
+ nick = config.krebs.build.host.name;
+ channel = "#retiolum";
+ server = "ni.r";
+ verbose = true;
+ # TODO define branches in some kind of option per repo
+ branches = [ "master" "staging*" ];
+ };
+ };
};
make-rules =