Changeset 150701 in webkit
- Timestamp:
- May 25, 2013 7:57:51 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r150698 r150701 1 2013-05-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Teach webkitbot and WKR how to respond to yt? 4 https://bugs.webkit.org/show_bug.cgi?id=116775 5 6 Reviewed by Andreas Kling. 7 8 * Scripts/webkitpy/tool/bot/irc_command.py: 9 (Hi): Fixed the usage string. 10 (Hi.execute): Made it more generic so that it works in WKR. 11 (YouThere): Added. 12 (YouThere.execute): Added. 13 * Scripts/webkitpy/tool/commands/newcommitbot.py: 14 1 15 2013-05-25 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py
r149133 r150701 112 112 class Hi(IRCCommand): 113 113 usage_string = "hi" 114 help_string = "Re trieves a random quip from Bugzilla."115 116 def execute(self, nick, args, tool, sheriff): 117 if len(args) and re.match( r'webkitbot_*\s*!\s*', ' '.join(args)):114 help_string = "Responds with hi." 115 116 def execute(self, nick, args, tool, sheriff): 117 if len(args) and re.match(sheriff.name() + r'_*\s*!\s*', ' '.join(args)): 118 118 return "%s: hi %s!" % (nick, nick) 119 119 quips = tool.bugs.quips() … … 128 128 def execute(self, nick, args, tool, sheriff): 129 129 return nick + ": pong" 130 131 132 class YouThere(IRCCommand): 133 usage_string = "yt?" 134 help_string = "Responds with yes." 135 136 def execute(self, nick, args, tool, sheriff): 137 return "%s: yes" % nick 130 138 131 139 … … 299 307 "rollout": Rollout, 300 308 "whois": Whois, 309 "yt?": YouThere, 301 310 } 302 311 -
trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot.py
r148461 r150701 38 38 from webkitpy.tool.bot.irc_command import PingPong 39 39 from webkitpy.tool.bot.irc_command import Restart 40 from webkitpy.tool.bot.irc_command import YouThere 40 41 from webkitpy.tool.bot.ircbot import IRCBot 41 42 from webkitpy.tool.commands.queues import AbstractQueue … … 53 54 "ping": PingPong, 54 55 "restart": Restart, 56 "yt?": YouThere, 55 57 } 56 58
Note: See TracChangeset
for help on using the changeset viewer.