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 <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2021-04-10 17:25:10 +02:00 committed by tazjin
parent e6d1e68f4a
commit f205d8ee73

View file

@ -74,6 +74,12 @@ in {
html = "<a href=\"https://b.tvl.fyi/issues/$1\">b/$1</a>";
};
# Auto-link other CLs
commentlink.gerrit = {
match = "cl/(\\\\d+)";
html = "<a href=\"https://cl.tvl.fyi/$1\">cl/$1</a>";
};
# Configures integration with CAS, which then integrates with a variety
# of backends.
auth.type = "OAUTH";