You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/08/08 11:19:08 UTC

[whimsy] branch master updated: Add check for asf-auth podlings

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 <se...@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" <co...@whimsical.apache.org>'].