You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/04/19 12:05:42 UTC

[whimsy] branch master updated: Subject may contain other files

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 7d9844b7 Subject may contain other files
7d9844b7 is described below

commit 7d9844b7a16692cdad3e87d9854931197170abb0
Author: Sebb <se...@apache.org>
AuthorDate: Tue Apr 19 13:05:35 2022 +0100

    Subject may contain other files
---
 tools/svnupdate.rb | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index e4c6f74b..f3110f37 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -27,17 +27,19 @@ def update(dir)
 end
 
 # N.B. Please ensure any required list subscriptions are noted in DEPLOYMENT.md
+subject = mail.subject # fetch once
 
-if mail.subject =~ %r{^board: r\d+ -( in)? /foundation/board} # board-commits@
+if subject =~ %r{^board: r\d+ -( in)? /foundation/board} # board-commits@
 
   update '/srv/svn/foundation_board'
 
-elsif mail.subject =~ %r{^foundation: r\d+ -( in)? /foundation} # foundation-commits@
+# N.B. subject may contain other files
+elsif subject =~ %r{^foundation: r\d+ -.* /foundation/members.txt} # foundation-commits@
 
-  # includes members.txt
+  # Now only has members.txt
   update '/srv/svn/foundation'
 
-elsif mail.subject =~ %r{^committers: r\d+ -( in)? /committers/board} # committers-cvs@
+elsif subject =~ %r{^committers: r\d+ -( in)? /committers/board} # committers-cvs@
 
   update '/srv/svn/board'