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/20 22:01:16 UTC
[whimsy] branch master updated: Also trigger in completed emeritus requests
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 b6dd86fa Also trigger in completed emeritus requests
b6dd86fa is described below
commit b6dd86fa51febf15b831532bc131f09b8b8d531b
Author: Sebb <se...@apache.org>
AuthorDate: Wed Apr 20 23:01:09 2022 +0100
Also trigger in completed emeritus requests
---
tools/svnupdate.rb | 31 +++++++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index 208ac84e..d1fa9ef6 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -27,14 +27,37 @@ if subject =~ %r{^board: r\d+ -( in)? /foundation/board} # board-commits@
update '/srv/svn/foundation_board'
# N.B. subject may contain other files
-elsif subject =~ %r{^foundation: r\d+ -.* /foundation/members.txt} # foundation-commits@
+elsif subject =~ %r{^foundation: r\d+ -} # generic foundation commit prefix
- # Now only has members.txt
- update '/srv/svn/foundation'
+ if subject =~ %r{ /foundation/members.txt}
+ # Now only has members.txt
+ update '/srv/svn/foundation'
+ end
+
+ # Changes to requests-received are important for the workbench to know
+ # when a request has been processed, so it's worth processing asap
+ if subject =~ %r{ /documents/emeritus-requests-received/}
+ require 'whimsy/asf/config'
+ require 'whimsy/asf/svn'
+ svnrepos = ASF::SVN.repo_entries(true) || {}
+ name = 'emeritus-requests-received'
+ description = svnrepos[name]
+ if description
+ old, new = ASF::SVN.updatelisting(name, nil, nil, description['dates'])
+ if old == new
+ $stderr.puts "List is at revision #{old}."
+ elsif old.nil?
+ $stderr.puts "Created list at revision #{new}"
+ else
+ $stderr.puts "List updated from #{old} to revision #{new}."
+ end
+ else
+ $stderr.puts "Could not find #{name} in repository.yaml"
+ end
+ end
elsif subject =~ %r{^committers: r\d+ -( in)? /committers/board} # committers-cvs@
update '/srv/svn/board'
end
-