RESOLVED FIXED 67975
sheriffbot whois should also tell us email addresses
https://bugs.webkit.org/show_bug.cgi?id=67975
Summary sheriffbot whois should also tell us email addresses
Ryosuke Niwa
Reported 2011-09-12 17:50:56 PDT
It's useful when I have to beg someone for fixing builds, bots, etc...
Attachments
fixes the bug (3.18 KB, patch)
2011-09-12 17:58 PDT, Ryosuke Niwa
no flags
Updated per abarth's comment (3.38 KB, patch)
2011-09-12 18:14 PDT, Ryosuke Niwa
eric: review+
Ryosuke Niwa
Comment 1 2011-09-12 17:58:19 PDT
Created attachment 107117 [details] fixes the bug
Adam Barth
Comment 2 2011-09-12 17:59:59 PDT
Comment on attachment 107117 [details] fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=107117&action=review > Tools/Scripts/webkitpy/tool/bot/irc_command.py:194 > + if len(contributor.emails) and search_string not in contributor.emails: Upper vs lower case?
Ryosuke Niwa
Comment 3 2011-09-12 18:07:57 PDT
Comment on attachment 107117 [details] fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=107117&action=review >> Tools/Scripts/webkitpy/tool/bot/irc_command.py:194 >> + if len(contributor.emails) and search_string not in contributor.emails: > > Upper vs lower case? Good point. will fix.
Ryosuke Niwa
Comment 4 2011-09-12 18:14:21 PDT
Created attachment 107120 [details] Updated per abarth's comment
Ryosuke Niwa
Comment 5 2011-09-12 18:15:34 PDT
(In reply to comment #4) > Created an attachment (id=107120) [details] > Updated per abarth's comment On second thought, it might be a good idea to report the correct email address.
Ryosuke Niwa
Comment 6 2011-09-12 18:15:58 PDT
That could be a follow up I guess.
Eric Seidel (no email)
Comment 7 2011-09-13 01:07:47 PDT
Comment on attachment 107120 [details] Updated per abarth's comment I guess I would have just used the default contributor __str__, as that prints out their default email anyway?
Ryosuke Niwa
Comment 8 2011-09-13 01:14:17 PDT
(In reply to comment #7) > (From update of attachment 107120 [details]) > I guess I would have just used the default contributor __str__, as that prints out their default email anyway? So I think that'll only print out the default email.
Eric Seidel (no email)
Comment 9 2011-09-13 11:54:43 PDT
Comment on attachment 107120 [details] Updated per abarth's comment View in context: https://bugs.webkit.org/attachment.cgi?id=107120&action=review > Tools/Scripts/webkitpy/tool/bot/irc_command.py:194 > + if len(contributor.emails) and search_string.lower() not in map(lambda email: email.lower(), contributor.emails): You can just use contributor.emails, bool([]) is false anyway. Why do you need to check the seach_string? You're trying to avoid printing an email if they gave an email? Won't that be confusing for "darin" since you won't print "darin@apple.com"?
David Levin
Comment 10 2011-09-13 11:56:03 PDT
Comment on attachment 107120 [details] Updated per abarth's comment Seems fine.
David Levin
Comment 11 2011-09-13 11:56:34 PDT
Comment on attachment 107120 [details] Updated per abarth's comment Whoops. Undo'ing due to Eric's comments.
Ryosuke Niwa
Comment 12 2011-09-13 11:57:11 PDT
(In reply to comment #9) > You can just use contributor.emails, bool([]) is false anyway. Ok, will do. > Why do you need to check the seach_string? You're trying to avoid printing an email if they gave an email? > > Won't that be confusing for "darin" since you won't print "darin@apple.com"? In that case, we will print darin@apple.com. That's why I manually search through the list of emails.
Eric Seidel (no email)
Comment 13 2011-09-13 12:01:07 PDT
Comment on attachment 107120 [details] Updated per abarth's comment With the removal of len(), sure.
Ryosuke Niwa
Comment 14 2011-09-13 13:50:25 PDT
Note You need to log in before you can comment on or make changes to this bug.