diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-08-30T16·25-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-08-30T22·16+0000 |
commit | 9b4986c5edcf3f03be68c83c0ef246fb71f27e54 (patch) | |
tree | 0dc6b14fb6c4dcdc036107593bfaf6dd1f9f2981 /ops/nixos | |
parent | de84e491cf58e330a3a10cc217bb9154107819f0 (diff) |
feat(monorepo-gerrit): Auto-link panettone issues r/1741
Auto-link b/\d+ in gerrit comments + patch comments to panettone issues. This is a departure from the previous syntax of #\d+ that we were using historically, but has been requested by multiple people Fixes: b/40 Change-Id: I8e556eb6b2f55ae80d945b86b51041751ecb053b Reviewed-on: https://cl.tvl.fyi/c/depot/+/1888 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'ops/nixos')
-rw-r--r-- | ops/nixos/monorepo-gerrit.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix index bbd753599d4f..c3bac190726e 100644 --- a/ops/nixos/monorepo-gerrit.nix +++ b/ops/nixos/monorepo-gerrit.nix @@ -67,6 +67,12 @@ in { filehistory = "/depot@\${commit}/-/blob/\${file}#&tab=history"; }; + # Auto-link panettone bug links + commentlink.panettone = { + match = "b/(\\d+)"; + html = "<a href=\"https://b.tvl.fyi/issues/$1\">b/$1</a>"; + }; + # Configures integration with the locally running OpenLDAP auth.type = "LDAP"; ldap = { |