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/13 15:05:08 UTC
[whimsy] branch master updated: Add pmc/podling status attributes
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 cc91f29 Add pmc/podling status attributes
cc91f29 is described below
commit cc91f294f2ed5724877d1ea13f04ad2ce3a411b8
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 13 16:05:06 2017 +0100
Add pmc/podling status attributes
---
www/roster/public_ldap_projects.rb | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/www/roster/public_ldap_projects.rb b/www/roster/public_ldap_projects.rb
index 42c8a83..976386c 100644
--- a/www/roster/public_ldap_projects.rb
+++ b/www/roster/public_ldap_projects.rb
@@ -11,7 +11,9 @@
# ],
# "owners": [
# "abcd",
-# ]
+# ],
+# "pmc": true|false, (may be absent)
+# "podling": "current|graduated|retired" (may be absent)
# },
# ...
# },
@@ -35,6 +37,14 @@ if projects.empty?
exit 0
end
+# committee status
+committees = Hash[ASF::Committee.load_committee_info.map {|committee|
+ [ committee.name.gsub(/[^-\w]/,'') , !committee.nonpmc? ]
+}]
+
+# podling status
+pods = Hash[ASF::Podling.list.map {|podling| [podling.name, podling.status]}]
+
lastStamp = ''
projects.keys.sort_by {|a| a.name}.each do |entry|
next if entry.name == 'apldap' # infra team would prefer this not be publicized
@@ -54,6 +64,14 @@ projects.keys.sort_by {|a| a.name}.each do |entry|
members: m,
owners: o
}
+ pmc = committees[entry.name]
+ if pmc
+ entries[entry.name][:pmc]=pmc
+ end
+ pod = pods[entry.name]
+ if pod
+ entries[entry.name][:podling]=pod
+ end
end
info = {
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].