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 bce13593 Add startup email
bce13593 is described below

commit bce135937842708cffe0cb06256080542048684a
Author: Sebb <sebb...@users.noreply.github.com>
AuthorDate: Sun Mar 3 07:32:38 2024 +0000

    Add startup email
---
 tools/pubsub-ci-email.rb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index 2b940a4e..0b3f1c7c 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -205,6 +205,16 @@ end
 if $0 == __FILE__
   $stdout.sync = true
 
+  # show initial start
+  previous_revision = File.read(PREVIOUS_REVISION).chomp
+  mail = Mail.new do
+    to 'notificati...@whimsical.apache.org'
+    from 'notificati...@whimsical.apache.org'
+    subject "Started pubsub-ci-email from revision #{previous_revision}"
+    body "Generated by #{__FILE__}"
+  end
+  mail.deliver!
+
   if ARGV.delete('--testchange')
     handle_change (ARGV.shift or raise "Need change id")
     exit

Reply via email to