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: Allow for Detailed Reports header.
Date Thu, 04 Oct 2018 23:11:18 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 97b5a68  Allow for Detailed Reports header.
97b5a68 is described below

commit 97b5a688cf9d3106943bd52bc39ae3a2591cedc8
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Oct 5 00:11:04 2018 +0100

    Allow for Detailed Reports header.
    
    e.g. 2012_02_15, 2012_03_21, 2012_04_18
---
 tools/collate_minutes.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 8baf82c..190a124 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -300,7 +300,8 @@ seen={}
 
     if title == 'Incubator' and text
       sections = text.split(/\nStatus [rR]eport (.*)\n=+\n/)
-      sections = text.split(/\n[-=][-=]+\n\s*([a-zA-Z].*)\n\n/) if sections.length < 9
+      # Some minutes have a 'Detailed Reports' header before the first podling report
+      sections = text.split(/\n[-=][-=]+(?: Detailed Reports ---+)?\n\s*([a-zA-Z].*)\n\n/)
if sections.length < 9
       sections = [''] if sections.include? 'FAILED TO REPORT'
       sections = text.split(/\n(\w+)\n-+\n\n/) if sections.length < 9
       sections = text.split(/\n=+\s+([\w.]+)\s+=+\n+/) if sections.length < 9


Mime
View raw message