gerrit: use Forgejo for viewing repo state
Already deployed.
Change-Id: I3a82e99f22e66676d79baafac85e7263ca140014
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1661
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/devtools/gerrit/kube/gerrit.libsonnet b/devtools/gerrit/kube/gerrit.libsonnet
index c3115ac..35b4cc5 100644
--- a/devtools/gerrit/kube/gerrit.libsonnet
+++ b/devtools/gerrit/kube/gerrit.libsonnet
@@ -72,11 +72,24 @@
canonicalWebUrl = https://%(domain)s/
serverId = %(identity)s
reportBugUrl = https://b.hackerspace.pl/new
+ primaryWeblinkName = Forgejo
[commentlink "b"]
match = [Bb]/(\\d+)
link = https://b.hackerspace.pl/$1
+ [gitweb]
+ url = https://git.hackerspace.pl/
+ type = custom
+ revision = hswaw/${project}/commit/${commit}
+ project = hswaw/${project}
+ branch = hswaw/${project}/src/branch/${branch}
+ tag = hswaw/${project}/releases/tag/${tag}
+ roottree = hswaw/${project}/src/commit/${commit}
+ file = hswaw/${project}/src/commit/${hash}/${file}
+ filehistory = hswaw/${project}/commits/branch/${branch}/${file}
+ linkname = Forgejo
+
[sshd]
advertisedAddress = %(domain)s