whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: join multiline titles; use acronym for ASF
Date Wed, 16 Nov 2016 14:31:42 GMT
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  a02b6ee   join multiline titles; use acronym for ASF
a02b6ee is described below

commit a02b6ee10ac9e9837088aade56763155c15eced9
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Nov 16 09:31:08 2016 -0500

    join multiline titles; use acronym for ASF
---
 lib/whimsy/asf/agenda/attachments.rb | 7 +++++++
 tools/collate_minutes.rb             | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/lib/whimsy/asf/agenda/attachments.rb b/lib/whimsy/asf/agenda/attachments.rb
index 579f874..3424f59 100644
--- a/lib/whimsy/asf/agenda/attachments.rb
+++ b/lib/whimsy/asf/agenda/attachments.rb
@@ -11,10 +11,17 @@ class ASF::Board::Agenda
 
     scan @file, pattern do |attrs|
 
+      # join multiline titles
+      while attrs['report'].start_with? '        '
+        append, attrs['report'] = attrs['report'].split("\n", 2)
+        attrs['title'] += ' ' + append.strip
+      end
+
       attrs['title'].sub! /^Report from the VP of /, ''
       attrs['title'].sub! /^Report from the /, ''
       attrs['title'].sub! /^Status report for the /, ''
       attrs['title'].sub! /^Apache /, ''
+      attrs['title'].sub! 'Apache Software Foundation', 'ASF'
 
       if attrs['title'] =~ /\s*\[.*\]$/
         attrs['owner'] = attrs['title'][/\[(.*?)\]/, 1]
diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index fb19d17..a5531e8 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -168,6 +168,13 @@ FileUtils.mkdir_p SITE_MINUTES
     .(.*?)\n                       # report
     (?=-{41,}\n(?:End|Attach))     # separator
   /mx).each do |attach,title,text|
+
+    # join multiline titles
+    while text.start_with? '        '
+      append, text = text.split("\n", 2)
+      title += ' ' + append.strip
+    end
+    
     title.sub! /Special /, ''
     title.sub! /Requested /, ''
     title.sub! /(^| )Report To The Board( On)?( |$)/i, ''
@@ -183,6 +190,7 @@ FileUtils.mkdir_p SITE_MINUTES
     title.sub! /\s[Cc]ommittee?\s*$/, ''
     title.sub! /\s[Pp]roject\s*$/, ''
     title.sub! /\sPMC$/, ''
+    title.sub! 'Apache Software Foundation', 'ASF'
 
     title.sub! /^Logging$/, 'Logging Services'
     title.sub! 'stdcxx', 'C++ Standard Library'

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

Mime
View raw message