From 4af0bfe7d43c36ff465bea5b4c5f7ec3ad2663f9 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 5 Jun 2017 18:06:02 +0000 Subject: [PATCH] Allow lists of trackingid footers Gerrit allows for multiple footers in a single trackingid. If a footers list is provided, iterate through all its entries; if not though, we should continue supporting the old footer string as a fallback. Change-Id: I99e16246e81b7ebc50e96054a2e3790aed0089bc --- templates/gerrit.config.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/gerrit.config.erb b/templates/gerrit.config.erb index 21a862c..9b084d0 100644 --- a/templates/gerrit.config.erb +++ b/templates/gerrit.config.erb @@ -148,7 +148,13 @@ <% @trackingids.each do |trackingid| -%> [trackingid "<%= trackingid['name'] %>"] match = "<%= trackingid['match'] %>" +<% if trackingid['footers'] -%> +<% trackingid['footers'].each do |footer_value| -%> + footer = "<%= footer_value %>" +<% end -%> +<% else -%> footer = "<%= trackingid['footer'] %>" +<% end -%> system = "<%= trackingid['system'] %>" <% end -%> [theme]