diff options
author | kongr45gpen <electrovesta@gmail.com> | 2016-07-17 22:19:27 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2016-07-17 22:20:19 +0300 |
commit | 8dd785e693406693ca2a1b92efecd1d9e53e17d9 (patch) | |
tree | 8ab21b180f487ffbcbcb9b85db8119f47f432237 /local/theme | |
parent | dd39db4330b1dc762c3e0f68f43cfb7b65651aef (diff) | |
download | supybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.tar.gz supybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.tar.bz2 supybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.zip |
Add support for Github releases
Diffstat (limited to 'local/theme')
-rw-r--r-- | local/theme/DefaultTheme.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py index 55d0863..3f29022 100644 --- a/local/theme/DefaultTheme.py +++ b/local/theme/DefaultTheme.py @@ -103,6 +103,18 @@ class DefaultTheme(Theme): ": %s" % maxLen(comment, 70) if comment else '' )) + def release(self, author, action, name, tag, description, commit, prerelease, url): + self.msgs.append( "%s: %s %s%s %s (%s): %s %s" % ( + self.repo(), + ircutils.mircColor(author, "green"), + colorAction(action), + " %s" % (ircutils.mircColor('prerelease', "orange")) if prerelease else '', + ircutils.bold(name), + ircutils.mircColor(tag, "dark gray"), + maxLen(description, 100), + self.enclose(url) + )) + def wikiPush(self, actor, count, url): self.msgs.append( "%s: %s modified %s wiki %s %s:" % ( self.repo(), |