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 2024/03/03 09:43:48 UTC
(whimsy) branch master updated: Allow test without email
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 ce4ff9c9 Allow test without email
ce4ff9c9 is described below
commit ce4ff9c90f97de857088b45e54afb586fd4c23f0
Author: Sebb <se...@apache.org>
AuthorDate: Sun Mar 3 09:43:41 2024 +0000
Allow test without email
---
tools/pubsub-ci-email.rb | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index 604d7efb..98f3a8ab 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -205,23 +205,28 @@ end
if $0 == __FILE__
$stdout.sync = true
+ if ARGV.delete('--testchange')
+ handle_change (ARGV.shift or raise "Need change id")
+ exit
+ end
+
+ puts stamp "Starting #{File.basename(__FILE__)}"
+
ASF::Mail.configure
# show initial start
previous_revision = File.read(PREVIOUS_REVISION).chomp
+ subject = "Started pubsub-ci-email from revision #{previous_revision}"
+ puts stamp subject
+
mail = Mail.new do
to 'notifications@whimsical.apache.org'
from 'notifications@whimsical.apache.org'
- subject "Started pubsub-ci-email from revision #{previous_revision}"
+ subject subject
body "Generated by #{__FILE__}"
end
mail.deliver!
- if ARGV.delete('--testchange')
- handle_change (ARGV.shift or raise "Need change id")
- exit
- end
-
options = {}
args = ARGV.dup # preserve ARGV for relaunch