Skip to content

Commit

Permalink
Create branch that can be applied to make NOTICE live
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Jul 18, 2024
1 parent 1d14953 commit 23b4ea1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tools/pubsub-ci-email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 "board@apache.org,#{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: board@apache.org,#{mail_list}
On #{currentdate} #{username} (#{userid}) was #{change_text} the
#{ctteename} PMC by #{currentcommittername} (#{currentcommitter}).
Expand All @@ -220,8 +211,7 @@ def do_diff(initialhash, currenthash, triggerrev)
mail = Mail.new do
from "#{currentcommittername} <#{currentcommitter}@apache.org>"
sender "notifications@whimsical.apache.org"
# Uncomment the following line when going live
# to "board@apache.org,#{mail_list}"
to "board@apache.org,#{mail_list}"
bcc 'notifications@whimsical.apache.org' # keep track of mails
subject subject
body body
Expand Down

0 comments on commit 23b4ea1

Please sign in to comment.