aboutsummaryrefslogtreecommitdiffstats
path: root/local/theme
diff options
context:
space:
mode:
authorkongr45gpen <kongr45gpen@helit.org>2015-01-01 00:47:42 +0200
committerkongr45gpen <kongr45gpen@helit.org>2015-01-01 00:47:42 +0200
commitdfa08b9b4ef776f7f651ec4c61db19b6bb4d1ae9 (patch)
treee30436283cdbb6173c1b53a55078ecc736fd970a /local/theme
parent7d2187b1cbe07dcd1e58c4a460c269ec645f86fd (diff)
downloadsupybot_github-dfa08b9b4ef776f7f651ec4c61db19b6bb4d1ae9.tar.gz
supybot_github-dfa08b9b4ef776f7f651ec4c61db19b6bb4d1ae9.tar.bz2
supybot_github-dfa08b9b4ef776f7f651ec4c61db19b6bb4d1ae9.zip
Show changed issue labels
Diffstat (limited to 'local/theme')
-rw-r--r--local/theme/DefaultTheme.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py
index 18982de..00a1171 100644
--- a/local/theme/DefaultTheme.py
+++ b/local/theme/DefaultTheme.py
@@ -77,12 +77,18 @@ class DefaultTheme(Theme):
' (%s)' % url if url else ''
))
- def issue(self, repo, actor, action, issueNo, issueTitle, creator, milestone, url, assignee = None, comment = None):
+ def issue(self, repo, actor, action, issueNo, issueTitle, creator, milestone, url, assignee = None, comment = None, labelName = None, labelColor = None):
formattedActor = ircutils.mircColor(actor, "green")
if actor == assignee:
formattedActor = ircutils.bold(formattedActor)
+ extra = ''
+ if action == 'assigned':
+ extra = " to %s" % ircutils.bold(ircutils.mircColor(assignee, "green"))
+ elif action == 'labeled':
+ extra = " as %s" % ircutils.mircColor(labelName, hexToMirc(labelColor))
+
self.msgs.append( "%s: %s %s issue #%s \"%s\"%s%s%s %s%s)%s" % (
ircutils.bold(repo),
formattedActor,
@@ -90,7 +96,7 @@ class DefaultTheme(Theme):
issueNo,
ircutils.bold(issueTitle),
" by %s" % ircutils.mircColor(creator,"green") if creator != actor else '',
- " to %s" % ircutils.bold(ircutils.mircColor(assignee, "green")) if action == 'assigned' else '',
+ extra,
" (%s" % ircutils.mircColor(milestone, "brown") if milestone else '',
'- ' if milestone else '(',
url,

© 2014-2024 Faster IT GmbH | imprint | privacy policy