From ee871d60807c143cd93fbd83b8fd1afa8ed4eb0e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 4 Jun 2015 12:58:13 +0800 Subject: Bug 1170179: Do not automatically set 'firefox-affected' release-tracking flags for comm-central products. --- .../default/hook/bug/create/create-form.html.tmpl | 39 +++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'extensions/TrackingFlags/template/en/default') diff --git a/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl b/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl index c027c6b7f..53f80a885 100644 --- a/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl +++ b/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl @@ -6,7 +6,27 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% RETURN UNLESS tracking_flag_components %] +[% + RETURN UNLESS tracking_flag_components; + + # A list of products that will automatically set cf_status_firefox to + # "affected" when filing bugs with nightly. An empty component list + # denotes all components. + auto_affected = { + "Firefox" = [], + "Firefox for Android" = [], + "Firefox OS" = [], + "Core" = [], + "Toolkit" = [], + "Firefox Health Report" = [ "Client: Desktop", "Client: Android" ], + }; + + # map product names to lowercase + FOREACH key IN auto_affected.keys; + key_lc = key.lower; + auto_affected.$key_lc = auto_affected.item(key); + END; +%]