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 d09f44eb Log subject if not active
d09f44eb is described below
commit d09f44eb8b398bbc3f47d9d743933be57b5b9285
Author: Sebb <[email protected]>
AuthorDate: Thu Mar 28 14:57:40 2024 +0000
Log subject if not active
---
tools/pubsub-ci-email.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index 9d810758..69292343 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -199,7 +199,11 @@ def do_diff(initialhash, currenthash, triggerrev)
subject subject
body body
end
- mail.deliver! if Status.active? or Status.testnode?
+ if Status.active? or Status.testnode?
+ mail.deliver!
+ else
+ puts stamp "Would have sent: #{subject}"
+ end
end
end
@@ -247,7 +251,7 @@ if $0 == __FILE__
exit
end
- puts stamp "Starting #{File.basename(__FILE__)}"
+ puts stamp "Starting #{File.basename(__FILE__)} Active?: #{Status.active?}"
# show initial start
previous_revision = File.read(PREVIOUS_REVISION).chomp.sub('r','').to_i