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 0a346e56 Partial fix for WHIMSY-395
0a346e56 is described below
commit 0a346e5686f466c226cea04555ddc8bd268a488b
Author: Sebb <[email protected]>
AuthorDate: Tue Feb 28 11:46:08 2023 +0000
Partial fix for WHIMSY-395
Get the owners from the Attachment header (if present)
This helps with minutes after about 2012.
---
tools/collate_minutes.rb | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 6d4d10d3..fa5f6370 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -294,12 +294,19 @@ seen={}
end
end
+ owners = nil
+ if title =~ /^Report from the VP of (.+)/
+ title = $1
+ if title =~ /^(.+?) +\[([^\]]+)\]/
+ title = $1
+ owners = $2
+ end
+ end
title.sub! /Special /, ''
title.sub! /Requested /, ''
title.sub! /(^| )Report To The Board( On)?( |$)/i, ''
title.sub! /^Board Report for /, ''
title.sub! /^Status [Rr]eport for (the )?/, ''
- title.sub! /^Report from the VP of /, ''
title.sub! /^Report from the /i, ''
title.sub! /^Status report for the /i, ''
title.sub! /^Apache /, ''
@@ -320,6 +327,7 @@ seen={}
report = pending[attach] || OpenStruct.new
report.meeting = date
report.attach = attach
+ report.owners ||= owners if owners
report.title = title.strip #.downcase
report.text = text