feat(monorepo-gerrit): Enable download-commands plugin

This enables the display of various download commands on change pages,
which makes things like checking out refs for review locally easier.

Change-Id: I3c29854aa0cf1aa393efb89b7516bbf84e0083d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/162
Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
Vincent Ambo 2020-06-13 03:32:46 +01:00 committed by tazjin
parent 213d637ca9
commit 8735c63e97

View file

@ -7,6 +7,8 @@ in {
enable = true; enable = true;
listenAddress = "[::]:4778"; # 4778 - grrt listenAddress = "[::]:4778"; # 4778 - grrt
serverId = "4fdfa107-4df9-4596-8e0a-1d2bbdd96e36"; serverId = "4fdfa107-4df9-4596-8e0a-1d2bbdd96e36";
builtinPlugins = [ "download-commands" ];
settings = { settings = {
core.packedGitLimit = "100m"; core.packedGitLimit = "100m";
log.jsonLogging = true; log.jsonLogging = true;
@ -18,6 +20,13 @@ in {
gerrit.canonicalWebUrl = "https://cl.tvl.fyi"; gerrit.canonicalWebUrl = "https://cl.tvl.fyi";
httpd.listenUrl = "proxy-https://${cfg.listenAddress}"; httpd.listenUrl = "proxy-https://${cfg.listenAddress}";
download.command = [
"checkout"
"cherry_pick"
"format_patch"
"pull"
];
# Configure for cgit. # Configure for cgit.
gitweb = { gitweb = {
type = "custom"; type = "custom";