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 8ef24153 Allow for foundation+documents work-round
8ef24153 is described below
commit 8ef24153d46e1c111932680c64a47d7a0c1dd856
Author: Sebb <[email protected]>
AuthorDate: Sun Apr 24 21:12:50 2022 +0100
Allow for foundation+documents work-round
---
tools/pubsub2rake.rb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/tools/pubsub2rake.rb b/tools/pubsub2rake.rb
index d324d0fc..ec2e7d6e 100755
--- a/tools/pubsub2rake.rb
+++ b/tools/pubsub2rake.rb
@@ -189,12 +189,19 @@ if $0 == __FILE__
# be other commits that mix directories.
pubsub_key = [path_prefix, one, 'commit'].join('/')
WATCH[pubsub_key] << [svn_relpath, name, desc['files']]
+ # The whimsy user does not have full access to private commits.
+ # As a work-round, commits that touch both documents and foundation are
given the topic documents
+ # This means that foundation commits may also be found under documents
+ if two == 'foundation'
+ pubsub_key = [path_prefix, one, 'documents', 'commit'].join('/')
+ WATCH[pubsub_key] << [svn_relpath, name, desc['files']]
+ end
end
if pubsub_URL == 'WATCH' # dump keys for use in constructing URL
WATCH.sort.each do |k, v|
puts k
- v.each do |e|
+ v.sort.each do |e|
print '- '
p e
end