diff options
author | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 12:52:32 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 12:52:43 +0200 |
commit | 225c1bc1664bb8b56b2ff72a42d70433282eeaaa (patch) | |
tree | ef7af24e49d50224578f2f4f27632b52603e5049 /local/theme | |
parent | 8c86df341d04e289ea6b9e58d3af69027904d4db (diff) | |
download | supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.tar.gz supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.tar.bz2 supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.zip |
Add support for `create` and `delete` Github API events
Diffstat (limited to 'local/theme')
-rw-r--r-- | local/theme/DefaultTheme.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py index c5e827c..1645cf4 100644 --- a/local/theme/DefaultTheme.py +++ b/local/theme/DefaultTheme.py @@ -48,18 +48,18 @@ class DefaultTheme(Theme): ' (%s)' % url if url else '' )) - def branch(self, repo, actor, action, count, base, to, url): - self.msgs.append( "%s: %s %s branch %s from %s%s%s" % ( + def branch(self, repo, actor, action, count, to, url, base = None): + self.msgs.append( "%s: %s %s branch %s%s%s%s" % ( ircutils.bold(repo), ircutils.mircColor(actor, "green"), colorAction(action), ircutils.bold(ircutils.mircColor(to, "blue")), - ircutils.bold(ircutils.mircColor(base, "blue")), + ' from %s' % ircutils.bold(ircutils.mircColor(base, "blue")) if base else '', ' (%s)' % url if url else '', ':' if count else '' )) - def tag(self, repo, actor, action, base, to, onlyDeleted, headMsg, headId, url): + def tag(self, repo, actor, action, to, onlyDeleted, base = None, headMsg = None, headId = None, url = None): if onlyDeleted: commitInfo = "" else: |