summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-08 18:09:35 +0200
committerByron Jones <glob@mozilla.com>2014-09-08 18:09:35 +0200
commitadfbc673427a2a44371db5284dd0522e7abb4423 (patch)
tree50a5902435937a784b87d47a6766917cda924b2c
parentae44a7a378de0d3326eeb5811dcad346f1251dc6 (diff)
downloadbugzilla-adfbc673427a2a44371db5284dd0522e7abb4423.tar.gz
bugzilla-adfbc673427a2a44371db5284dd0522e7abb4423.tar.xz
Bug 1051058: Auto-CC Erica Choe into Finance Review and Master Kick-Off Bugs
-rw-r--r--extensions/MozProjectReview/Extension.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/extensions/MozProjectReview/Extension.pm b/extensions/MozProjectReview/Extension.pm
index 43f357ef3..a465b30f6 100644
--- a/extensions/MozProjectReview/Extension.pm
+++ b/extensions/MozProjectReview/Extension.pm
@@ -17,7 +17,9 @@ use Bugzilla::Constants;
our $VERSION = '0.01';
-our %tracker_cc = (
+# these users will be cc'd to the parent bug when the corresponding child bug
+# is created, as well as the child bug.
+our %auto_cc = (
'legal' => ['liz@mozilla.com'],
'sec-review' => ['curtisk@mozilla.com'],
'finance' => ['waoieong@mozilla.com', 'mcristobal@mozilla.com', 'echoe@mozilla.com'],
@@ -247,12 +249,15 @@ sub _file_child_bug {
Bugzilla->template->process($full_template, $template_vars, \$comment)
|| ThrowTemplateError(Bugzilla->template->error());
$bug_data->{'comment'} = $comment;
+ if (exists $auto_cc{$template_suffix}) {
+ $bug_data->{'cc'} = { add => $auto_cc{$template_suffix} };
+ }
if ($new_bug = Bugzilla::Bug->create($bug_data)) {
my $set_all = {
dependson => { add => [ $new_bug->bug_id ] }
};
- if (exists $tracker_cc{$template_suffix}) {
- $set_all->{'cc'} = { add => $tracker_cc{$template_suffix} };
+ if (exists $auto_cc{$template_suffix}) {
+ $set_all->{'cc'} = { add => $auto_cc{$template_suffix} };
}
$parent_bug->set_all($set_all);
$parent_bug->update($parent_bug->creation_ts);