From f205d8ee73a6b1288b1cf4942704d912543cdf2b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 10 Apr 2021 17:25:10 +0200 Subject: feat(gerrit): Auto link 'cl/123'-style shortlinks Same as linking to bugs (e.g. b/108). Change-Id: I447020bc07059c98c53322d745f961d8d471d9a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2919 Reviewed-by: sterni Tested-by: BuildkiteCI --- ops/nixos/monorepo-gerrit.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ops') diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix index 61d8b71a5baa..eaea386ecd11 100644 --- a/ops/nixos/monorepo-gerrit.nix +++ b/ops/nixos/monorepo-gerrit.nix @@ -74,6 +74,12 @@ in { html = "b/$1"; }; + # Auto-link other CLs + commentlink.gerrit = { + match = "cl/(\\\\d+)"; + html = "cl/$1"; + }; + # Configures integration with CAS, which then integrates with a variety # of backends. auth.type = "OAUTH"; -- cgit 1.4.1