whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [whimsy] branch master updated: Only remove people who are currently not in committee-info and are in LDAP pmc-chairs
Date Tue, 09 Jan 2018 03:13:59 GMT
This is an automated email from the ASF dual-hosted git repository.

clr 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 aeee55f  Only remove people who are currently not in committee-info and are in LDAP
pmc-chairs
aeee55f is described below

commit aeee55f88cd54eec6f4332cf50e42cdcf9804bb3
Author: Craig L Russell <craig.russell@oracle.com>
AuthorDate: Mon Jan 8 19:13:49 2018 -0800

    Only remove people who are currently not in committee-info and are in LDAP pmc-chairs
---
 tools/modify_pmcchairs.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/modify_pmcchairs.rb b/tools/modify_pmcchairs.rb
index 4316509..c1fbf05 100755
--- a/tools/modify_pmcchairs.rb
+++ b/tools/modify_pmcchairs.rb
@@ -28,6 +28,8 @@ chairs = ASF::Service.find('pmc-chairs')
 current = ASF::Committee.pmcs.map(&:chair).uniq
 # only remove people from LDAP who are not currently chairs
 to_be_removed = people.reject{|p| current.include?(p)}
+# only remove people who are currently in LDAP pmc-chairs
+to_be_removed.reject!{|p| !chairs.members.include?(p)}
 
 # execute the action
 if action == '--add' and not people.empty?

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message