about summary refs log tree commit diff
path: root/ops/modules
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-11-27T17·36+0300
committerVincent Ambo <mail@tazj.in>2021-12-01T09·49+0300
commitc1aab56a02dc3b75bce1f5a493b718bfc9164de1 (patch)
tree1ca694fa18c3eb76dc6926f39c65bcd5c74c667b /ops/modules
parent8318178b5f34bae0d625ada1170006cb2d6a6a51 (diff)
feat(besadii): Support invocation as different Gerrit hooks r/3125
Removes besadii support for the previously used 'ref-updated' hook and
instead introduces support for the 'change-merged' and
'patchset-created' hooks.

These hooks more accurately capture the semantics of when besadii
should trigger CI builds and using them will avoid problems such as
skipping 'canon' builds if chains of CLs are submitted together.

Change-Id: Ib90356c069780bf0c0250e56b927e46a5b31ce7f
Diffstat (limited to 'ops/modules')
-rw-r--r--ops/modules/monorepo-gerrit.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix
index 69850fa15aaa..714aeeaa6ef1 100644
--- a/ops/modules/monorepo-gerrit.nix
+++ b/ops/modules/monorepo-gerrit.nix
@@ -5,7 +5,8 @@ let
   cfg = config.services.gerrit;
   gerritHooks = pkgs.runCommandNoCC "gerrit-hooks" {} ''
     mkdir -p $out
-    ln -s ${depot.ops.besadii}/bin/besadii $out/ref-updated
+    ln -s ${depot.ops.besadii}/bin/besadii $out/change-merged
+    ln -s ${depot.ops.besadii}/bin/besadii $out/patchset-created
   '';
 in {
   services.gerrit = {