diff options
author | sterni <sternenseemann@systemli.org> | 2024-11-25T11·29+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-11-25T11·39+0000 |
commit | e9b2b0d51cd5bd514f38dc1cc389bd8ae5a5f97e (patch) | |
tree | f6f7fbeacfdcf25a42eb9b479a9b3b5018d67c2f | |
parent | e9acde3c42f56e21e4cdacdf2386b62cbb9032e4 (diff) |
feat(ops/monorepo-gerrit): link r/<id> shortlinks to revisions r/8965
I've decided to use the commit view instead of the log view (which cgit uses) for now. It really depends on how you use it in commit messages: To refer to a depot state or to a specific change (independently of what CL gerrit assigned). I'm happy to change it to use the log view. Change-Id: I472b511fa1322f91304f6543473b51f9c5f21ca2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12837 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
-rw-r--r-- | ops/modules/monorepo-gerrit.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix index b335fe61d5bb..e9d48a6e35bc 100644 --- a/ops/modules/monorepo-gerrit.nix +++ b/ops/modules/monorepo-gerrit.nix @@ -97,6 +97,12 @@ in link = "https://cl.tvl.fyi/$1"; }; + # Auto-link links to monotonically increasing revisions/commits + commentlink.revision = { + match = "r/(\\d+)"; + link = "https://code.tvl.fyi/commit/?h=refs/r/$1"; + }; + # Configures integration with Keycloak, which then integrates with a # variety of backends. auth.type = "OAUTH"; |