You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/06/17 01:04:37 UTC

[whimsy] branch master updated: update committee-info.txt and LDAP for establish resolutions

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  683a8ed   update committee-info.txt and LDAP for establish resolutions
683a8ed is described below

commit 683a8eddcf543662ce7af21fbb39bd80baec150f
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Jun 16 21:04:06 2016 -0400

    update committee-info.txt and LDAP for establish resolutions
---
 www/board/agenda/views/actions/todos.json.rb | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/www/board/agenda/views/actions/todos.json.rb b/www/board/agenda/views/actions/todos.json.rb
index 08a1e9b..4bb427e 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -59,6 +59,31 @@ end
 if @establish and env.password
   establish = @establish.select {|title, checked| checked}.map(&:first)
 
+  # common to all establish resolutions
+  chairs = ASF::Service.find('pmc-chairs')
+  cinfo = "#{ASF::SVN['private/committers/board']}/committee-info.txt"
+  established = Date.parse(date.gsub('_', '-'))
+
+  # update LDAP, committee-info.txt
+  establish.each do |pmc|
+    resolution = agenda.find {|item| item['title'] == "Establish #{pmc}"}
+
+    chair = ASF::Person.find(resolution['chair'])
+    members = resolution['people'].map {|id, hash| ASF::Person.find(id)}
+    people = resolution['people'].map {|id, hash| [id, hash[:name]]}
+
+    ASF::SVN.update cinfo, resolution['title'], env, _ do |tmpdir, contents|
+      ASF::Committee.establish(contents, pmc, established, people)
+    end
+
+    ASF::LDAP.bind(env.user, env.password) do
+      chairs.add [chair] unless chairs.members.include? chair
+      ASF::Group.add(pmc, members)
+      ASF::Committee.add(pmc, members)
+    end 
+  end
+
+  # create 'victims' file for legacy tlpreq tool
   Dir.chdir TLPREQ do
     count = Dir["victims-#{date}.*.txt"].length
     filename = "victims-#{date}.#{count}.txt"

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