tv gitrepos: announce brain
This commit is contained in:
parent
094feb9b4a
commit
f2e151ba24
@ -90,28 +90,31 @@ let {
|
|||||||
{
|
{
|
||||||
brain = {
|
brain = {
|
||||||
collaborators = with config.krebs.users; [ lass makefu ];
|
collaborators = with config.krebs.users; [ lass makefu ];
|
||||||
|
hooks.post-receive = irc-announce-retiolum;
|
||||||
};
|
};
|
||||||
} //
|
} //
|
||||||
# TODO don't put secrets/repos.nix into the store
|
# TODO don't put secrets/repos.nix into the store
|
||||||
import <secrets/repos.nix> { inherit config lib pkgs; }
|
import <secrets/repos.nix> { inherit config lib pkgs; }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
irc-announce-retiolum = 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;
|
||||||
|
};
|
||||||
|
|
||||||
make-public-repo = name: { cgit ? {}, ... }: {
|
make-public-repo = name: { cgit ? {}, ... }: {
|
||||||
inherit cgit name;
|
inherit cgit name;
|
||||||
public = true;
|
public = true;
|
||||||
hooks = optionalAttrs (config.krebs.build.host.name == "ni") {
|
hooks = optionalAttrs (config.krebs.build.host.name == "ni") {
|
||||||
post-receive = pkgs.git-hooks.irc-announce {
|
post-receive = irc-announce-retiolum;
|
||||||
# TODO make nick = config.krebs.build.host.name the default
|
|
||||||
nick = config.krebs.build.host.name;
|
|
||||||
channel = "#retiolum";
|
|
||||||
server = "ni.r";
|
|
||||||
verbose = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
make-restricted-repo = name: { collaborators ? [], ... }: {
|
make-restricted-repo = name: { collaborators ? [], hooks ? {}, ... }: {
|
||||||
inherit collaborators name;
|
inherit collaborators hooks name;
|
||||||
public = false;
|
public = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user