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 62b65fb4 Handle multiple icla mails
62b65fb4 is described below
commit 62b65fb4872eebe29a35136bfbdb5394985270f4
Author: Sebb <[email protected]>
AuthorDate: Sat May 20 15:00:09 2023 +0100
Handle multiple icla mails
---
lib/whimsy/asf/mail.rb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index dffacac8..80c82bbf 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -309,8 +309,11 @@ module ASF
return @obsolete_emails if @obsolete_emails
result = []
- if icla && active_emails.none? {|mail| mail.downcase ==
icla.email.downcase}
- result << icla.email
+ if icla
+ icla.emails.each do |email|
+ active_emails.none? {|mail| mail.downcase == email.downcase}
+ result << email
+ end
end
@obsolete_emails = result
end