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 1d149534 Document how to go live
1d149534 is described below
commit 1d1495344351ec9a266605454aeb8c1eec91db23
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 18 15:55:11 2024 +0100
Document how to go live
---
tools/pubsub-ci-email.rb | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index 77ca742f..f03dc62e 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -191,8 +191,12 @@ def do_diff(initialhash, currenthash, triggerrev)
joindate = args[:date]
mail_list = "private@#{cttee.mail_list}.apache.org"
change_text = TYPES[type] || type # 'added to|dropped from'
+ # The email currently only goes to notifications@whimsical.
+ # To enable actual reporting, change the following:
+ # - remote [TEST] from the subject
+ # - remove the first 3 lines of the email body
+ # - uncomment the 'to "[email protected],#{mail_list}"' line below
subject = "[TEST][NOTICE] #{username} (#{userid}) #{change_text}
#{ctteename} in #{currentrev}"
- to = "[email protected],#{mail_list}"
body = <<~EOD
This is a TEST email
====================
@@ -216,7 +220,8 @@ def do_diff(initialhash, currenthash, triggerrev)
mail = Mail.new do
from "#{currentcommittername} <#{currentcommitter}@apache.org>"
sender "[email protected]"
- # to to # Initial testing, only use Bcc
+ # Uncomment the following line when going live
+ # to "[email protected],#{mail_list}"
bcc '[email protected]' # keep track of mails
subject subject
body body