This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new ad7d6f08 More exclusions
ad7d6f08 is described below
commit ad7d6f08be8d42c0b28fceea5bf17cb66946d559
Author: Sebb <[email protected]>
AuthorDate: Wed Apr 20 15:00:53 2022 +0100
More exclusions
---
www/members/moderator_checks.cgi | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/www/members/moderator_checks.cgi b/www/members/moderator_checks.cgi
index a9978e2f..963d6760 100755
--- a/www/members/moderator_checks.cgi
+++ b/www/members/moderator_checks.cgi
@@ -12,9 +12,16 @@ require 'wunderbar/jquery/stupidtable'
MODERATORS = %w{
[email protected]
+ [email protected]
[email protected]
+ [email protected]
}
+def private_mod(lid, mod)
+ dom = lid.split('@')[-1]
+ ["pmc@#{dom}", "private@#{dom}"].include? mod
+end
+
_html do
_body? do
_whimsy_body(
@@ -32,10 +39,10 @@ _html do
) do
lists, _time = ASF::MLIST.list_moderators(nil)
emails = ASF::Mail.list
- unknown = Hash.new { |h,k| h[k] = []}
+ unknown = Hash.new { |h, k| h[k] = []}
lists.each do |lid, mods|
mods.each do |mod|
- unknown[mod] << lid unless MODERATORS.include? mod or emails[mod]
+ unknown[mod] << lid unless MODERATORS.include? mod or emails[mod] or
private_mod(lid, mod)
end
end