This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch livenotice
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 23b4ea17ac1dc127e2cd8954b426fb8f230e1dee
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 18 15:59:26 2024 +0100

    Create branch that can be applied to make NOTICE live
---
 tools/pubsub-ci-email.rb | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index f03dc62e..f0b30c32 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -191,17 +191,8 @@ 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}"
+    subject = "[NOTICE] #{username} (#{userid}) #{change_text} #{ctteename} in 
#{currentrev}"
     body = <<~EOD
-    This is a TEST email
-    ====================
-    To: [email protected],#{mail_list}
-    
     On #{currentdate} #{username} (#{userid}) was #{change_text} the
     #{ctteename} PMC by #{currentcommittername} (#{currentcommitter}).
 
@@ -220,8 +211,7 @@ def do_diff(initialhash, currenthash, triggerrev)
     mail = Mail.new do
       from "#{currentcommittername} <#{currentcommitter}@apache.org>"
       sender "[email protected]"
-      # Uncomment the following line when going live
-      # to "[email protected],#{mail_list}"
+      to "[email protected],#{mail_list}"
       bcc '[email protected]' # keep track of mails
       subject subject
       body body

Reply via email to