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 2aae404d Show current revision
2aae404d is described below
commit 2aae404d2d2100d54162633ff8896df4d599aa9d
Author: Sebb <[email protected]>
AuthorDate: Sun Mar 3 10:00:24 2024 +0000
Show current revision
---
tools/pubsub-ci-email.rb | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index 98f3a8ab..390ce0a0 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -216,14 +216,28 @@ if $0 == __FILE__
# show initial start
previous_revision = File.read(PREVIOUS_REVISION).chomp
- subject = "Started pubsub-ci-email from revision #{previous_revision}"
+
+ svnrev, err = ASF::SVN.getInfoItem(SOURCE_URL, 'last-changed-revision')
+ if svnrev
+ latest = "r#{svnrev}"
+ else
+ puts stamp err
+ latest = 'unknown'
+ end
+
+ subject = "Started pubsub-ci-email from revision #{previous_revision},
current #{latest}"
puts stamp subject
+ body = <<~EOD
+ This is a test email
+
+ Generated by #{__FILE__}
+ EOD
mail = Mail.new do
to '[email protected]'
from '[email protected]'
subject subject
- body "Generated by #{__FILE__}"
+ body body
end
mail.deliver!