771efe738582225cd0cde5eda46173674356291b chmalee Fri May 21 11:13:30 2021 -0700 Don't send build summary emails to github contributors, refs #27336 diff --git src/utils/qa/weeklybld/sendLogEmail.pl src/utils/qa/weeklybld/sendLogEmail.pl index ea91360..5f3cd21 100755 --- src/utils/qa/weeklybld/sendLogEmail.pl +++ src/utils/qa/weeklybld/sendLogEmail.pl @@ -6,31 +6,32 @@ my $argc = scalar(@ARGV); if ($argc != 2) { printf STDERR "usage: sendLogEmail.pl \$LASTNN \$BRANCHNN\n"; exit 255; } my $lastNN = shift; my $branchNN = shift; my $buildMeisterEmail = $ENV{'BUILDMEISTEREMAIL'} . ',azweig@ucsc.edu,lrnassar@ucsc.edu'; my $returnEmail = ' lrnassar@ucsc.edu'; my @victims; my %victimEmail; -open (FH, "git log v${lastNN}_base..v${branchNN}_base --name-status | grep Author | sort | uniq|") or die "can not git log v${lastNN}_base..v${branchNN}_base --name-status"; +my $authorFilter = `getent group kentcommit | cut -d':' -f4 | sed -e 's/^\\|,/ --author=/g'`; +open (FH, "git log v${lastNN}_base..v${branchNN}_base --name-status ${authorFilter} | grep Author | sort | uniq|") or die "can not git log v${lastNN}_base..v${branchNN}_base --name-status"; while (my $line = <FH>) { chomp $line; if ($line =~ m/^Author:/) { $line =~ s/Author: //; my @b = split('\s+', $line); my $sizeB = scalar(@b); my $email = $b[$sizeB-1]; $email =~ s/<//; $email =~ s/@.*//; if (!exists($victimEmail{$email})) { push @victims, $email; $victimEmail{$email} = $line; } } }