Changeset 150701 in webkit


Ignore:
Timestamp:
May 25, 2013 7:57:51 PM (11 years ago)
Author:
rniwa@webkit.org
Message:

Teach webkitbot and WKR how to respond to yt?
https://bugs.webkit.org/show_bug.cgi?id=116775

Reviewed by Andreas Kling.

  • Scripts/webkitpy/tool/bot/irc_command.py:

(Hi): Fixed the usage string.
(Hi.execute): Made it more generic so that it works in WKR.
(YouThere): Added.
(YouThere.execute): Added.

  • Scripts/webkitpy/tool/commands/newcommitbot.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r150698 r150701  
     12013-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
    1152013-05-25  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py

    r149133 r150701  
    112112class Hi(IRCCommand):
    113113    usage_string = "hi"
    114     help_string = "Retrieves 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)):
    118118            return "%s: hi %s!" % (nick, nick)
    119119        quips = tool.bugs.quips()
     
    128128    def execute(self, nick, args, tool, sheriff):
    129129        return nick + ": pong"
     130
     131
     132class 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
    130138
    131139
     
    299307    "rollout": Rollout,
    300308    "whois": Whois,
     309    "yt?": YouThere,
    301310}
    302311
  • trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot.py

    r148461 r150701  
    3838from webkitpy.tool.bot.irc_command import PingPong
    3939from webkitpy.tool.bot.irc_command import Restart
     40from webkitpy.tool.bot.irc_command import YouThere
    4041from webkitpy.tool.bot.ircbot import IRCBot
    4142from webkitpy.tool.commands.queues import AbstractQueue
     
    5354        "ping": PingPong,
    5455        "restart": Restart,
     56        "yt?": YouThere,
    5557    }
    5658
Note: See TracChangeset for help on using the changeset viewer.