aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Mageia/Extension.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2024-11-11 15:59:50 +0100
committerFrédéric Buclin <LpSolit@netscape.net>2024-11-11 16:02:10 +0100
commit8b32612175438a61aa217183f0fb33621436becb (patch)
tree4c1ade1ee495574f693e1111df2b751aa753f228 /extensions/Mageia/Extension.pm
parent7a433d35a38ad8978081012255e36ccf13700123 (diff)
downloadbugs-8b32612175438a61aa217183f0fb33621436becb.tar
bugs-8b32612175438a61aa217183f0fb33621436becb.tar.gz
bugs-8b32612175438a61aa217183f0fb33621436becb.tar.bz2
bugs-8b32612175438a61aa217183f0fb33621436becb.tar.xz
bugs-8b32612175438a61aa217183f0fb33621436becb.zip
Add sysadmin-bugs@ml.mageia.org to the CC list when the
validated_backport keyword is set (mga#33741)
Diffstat (limited to 'extensions/Mageia/Extension.pm')
-rw-r--r--extensions/Mageia/Extension.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/Mageia/Extension.pm b/extensions/Mageia/Extension.pm
index e419e4882..c2f8466e7 100644
--- a/extensions/Mageia/Extension.pm
+++ b/extensions/Mageia/Extension.pm
@@ -35,11 +35,11 @@ use constant MGA_SETTINGS => {
sub bug_end_of_create_validators {
my ($self, $args) = @_;
- # If a user enters 'validated_update' as keyword,
+ # If a user enters 'validated_update' or 'validated_backport' as keyword,
# automatically CC sysadmin-bugs@ml.mageia.org.
my $keywords = $args->{params}->{keywords};
- if (grep { $_->name eq 'validated_update' } @$keywords) {
+ if (grep { $_->name =~ /^validated_(?:update|backport)$/ } @$keywords) {
my $cc_list = $args->{params}->{cc};
if (!grep { $_ == SYSADMIN_USER_ID } @$cc_list) {
push(@$cc_list, SYSADMIN_USER_ID);
@@ -60,11 +60,11 @@ sub bug_end_of_update {
$new_keywords_str = $args->{changes}->{keywords}->[1];
}
- # If a user enters 'validated_update' as keyword, automatically
- # CC sysadmin-bugs@ml.mageia.org.
+ # If a user enters 'validated_update' or 'validated_backport' as keyword,
+ # automatically CC sysadmin-bugs@ml.mageia.org.
if ($new_keywords_str) {
my @new_keywords = split(/[,\s]+/, $new_keywords_str);
- if (grep { $_ eq 'validated_update' } @new_keywords
+ if (grep { $_ =~ /^validated_(?:update|backport)$/ } @new_keywords
and !grep { $_->id == SYSADMIN_USER_ID } @{$bug->cc_users})
{
# Safer to clear the cache and let Bugzilla regenerate them if needed.