whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: update ci.yaml to add retirements
Date Sun, 18 Oct 2020 15:15:46 GMT
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 4bde885  update ci.yaml to add retirements
4bde885 is described below

commit 4bde885b2dc0aedc092af59f0b4ac2da8b526c13
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Oct 18 16:15:37 2020 +0100

    update ci.yaml to add retirements
---
 www/board/agenda/views/actions/todos.json.rb | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/todos.json.rb b/www/board/agenda/views/actions/todos.json.rb
index e9e796e..3c34042 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -6,7 +6,8 @@ TLPREQ = ASF::SVN['tlpreq-input']
 
 date = params[:date].gsub('-', '_')
 raise ArgumentError, "Invalid date #{date}" unless date =~ /\A\d+_\d+_\d+\z/
-date_established = Date.parse(date.gsub('_', '-'))
+datehy = date.gsub('_', '-')
+date_established = Date.parse(datehy)
 
 agenda = "board_agenda_#{date}.txt"
 
@@ -141,6 +142,17 @@ if @establish and env.password
 
   establish = @establish.map {|resolution| resolution['name']}
 
+  # update ci.yaml to add retirements
+  if @terminate and env.password
+    yyyymm = datehy[0, 7] # keep only yyyy-mm
+    cinfoy = File.join(ASF::SVN['board'], 'committee-info.yaml')
+    @terminate.each do |resolution|
+      ASF::SVN.update cinfoy, title, env, _ do |_tmpdir, contents|
+        ASF::Committee.record_termination(contents, resolution['name'], yyyymm)
+      end
+    end
+  end
+
   # create 'victims' file for tlpreq tool
   ASF::SVN.svn('update', TLPREQ)
   establish -= Dir[File.join(TLPREQ, "victims-#{date}.*.txt")].


Mime
View raw message