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 50964565 Default to ASF email
50964565 is described below

commit 50964565bf7df7e8ee5c132739a1142196976462
Author: Sebb <[email protected]>
AuthorDate: Wed Mar 15 23:46:59 2023 +0000

    Default to ASF email
---
 lib/whimsy/asf/member.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index d94863d9..68089b20 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -324,7 +324,7 @@ module ASF
     #  :fullname - required
     #  :address - required, multi-line allowed
     #  :availid - required
-    #  :email - required
+    #  :email - optional
     #  :country - optional
     #  :tele - optional
     #  :fax - optional
@@ -332,7 +332,7 @@ module ASF
       fullname = fields[:fullname] or raise ArgumentError.new(":fullname is 
required")
       address = fields[:address] || '<postal address>'
       availid = fields[:availid] or raise ArgumentError.new(":availid is 
required")
-      email = fields[:email] || '<email>'
+      email = fields[:email] || "#{availid}@apache.org"
       country = fields[:country] || '<Country>'
       tele = fields[:tele] || '<phone number>'
       fax = fields[:fax] || ''

Reply via email to