You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/07/05 02:44:24 UTC
[whimsy] branch master updated: add a warning if a non apache.org
email address is found
This is an automated email from the ASF dual-hosted git repository.
rubys 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 ad26e55 add a warning if a non apache.org email address is found
ad26e55 is described below
commit ad26e5571b6c15ed01b309ac6de9b80404727727
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jul 4 22:44:06 2017 -0400
add a warning if a non apache.org email address is found
---
lib/whimsy/asf/agenda/special.rb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/whimsy/asf/agenda/special.rb b/lib/whimsy/asf/agenda/special.rb
index 12844c3..812e067 100644
--- a/lib/whimsy/asf/agenda/special.rb
+++ b/lib/whimsy/asf/agenda/special.rb
@@ -125,6 +125,12 @@ class ASF::Board::Agenda
else
attrs['warnings'] ||= ['Chair not found in resolution']
end
+
+ if text.scan(/[<(][-.\w]+@(?:[-\w]+\.)+\w+[>)]/).
+ any? {|email| not email.include? 'apache.org'}
+ then
+ attrs['warnings'] ||= ['non apache.org email address found']
+ end
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].