From dd7372782a7d73f888e06b643f7ffa08a40af441 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 19 Mar 2025 20:47:46 +0100 Subject: [PATCH] feat(ops/modules/monorepo-gerrit): link to Forgejo issues They are linked to Snix repo because this is the only one we are using. Fixes #81. Change-Id: I3c47547128a7dc5e1fe67a8fbe87b17c7e94f153 Signed-off-by: Raito Bezarius Reviewed-on: https://cl.snix.dev/c/snix/+/30144 Tested-by: besadii Reviewed-by: Florian Klink --- ops/modules/monorepo-gerrit.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix index d3d967b16..5038583a4 100644 --- a/ops/modules/monorepo-gerrit.nix +++ b/ops/modules/monorepo-gerrit.nix @@ -92,10 +92,24 @@ in # linkname = "cgit"; # }; - # Auto-link other CLs - commentlink.gerrit = { - match = "cl/(\\d+)"; - link = "https://cl.snix.dev/q/$1"; + # # Auto-link panettone bug links + # commentlink.panettone = { + # match = "b/(\\d+)"; + # link = "https://b.tvl.fyi/issues/$1"; + # }; + + commentlink = { + # Auto-link other CLs + gerrit = { + match = "cl/(\\d+)"; + link = "https://cl.snix.dev/q/$1"; + }; + + # Auto-link Forgejo issues + forgejo = { + match = "#(\\d+)"; + link = "https://git.snix.dev/snix/snix/issues/$1"; + }; }; # Configures integration with Keycloak, which then integrates with a