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 bfd5a8d  Add check for asf-auth podlings
bfd5a8d is described below

commit bfd5a8d222b7ba09655f577f0e99cb991a3390d9
Author: Sebb <s...@apache.org>
AuthorDate: Tue Aug 8 12:19:06 2017 +0100

    Add check for asf-auth podlings
---
 tools/check_consistency.rb | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/tools/check_consistency.rb b/tools/check_consistency.rb
index 3dd32d0..11053cf 100644
--- a/tools/check_consistency.rb
+++ b/tools/check_consistency.rb
@@ -56,3 +56,29 @@ committees.keys.sort_by {|a| a.name}.each do |entry|
       end
     end
 end
+
+puts ""
+puts "current podlings(asf-auth) ~ project(members, owners)"
+pods = Hash[ASF::Podling.list.map {|podling| [podling.name, podling.status]}]
+ASF::Authorization.new('asf').each do |grp, mem|
+  if pods[grp] == 'current'
+    mem.sort!.uniq!
+    project = ASF::Project[grp]
+    if project
+      pm = []
+      project.members.sort_by {|a| a.name}.each do |e|
+          pm << e.name
+      end
+      po = []
+      project.owners.sort_by {|a| a.name}.each do |e|
+          po << e.name
+      end
+      if mem != pm
+        puts "#{grp}: pm-auth=#{pm-mem} auth-pm=#{mem-pm}" 
+      end
+      if mem != po
+        puts "#{grp}: po-auth=#{po-mem} auth-po=#{mem-po}" 
+      end
+    end
+  end
+end

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

Reply via email to