aboutsummaryrefslogtreecommitdiffstats
path: root/local/utility.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-11-13 01:26:35 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-11-13 01:26:35 +0200
commit20056690507c2a69bfdb307ae5ade414dac5a795 (patch)
tree8575544ab2346cc3eabdb5c8e87dcd3d33a62106 /local/utility.py
parent1a87997aa49a8a3931525c910400bf8db141ddb7 (diff)
downloadsupybot_github-20056690507c2a69bfdb307ae5ade414dac5a795.tar.gz
supybot_github-20056690507c2a69bfdb307ae5ade414dac5a795.tar.bz2
supybot_github-20056690507c2a69bfdb307ae5ade414dac5a795.zip
Improve issues theme
Closes #10 Closes #11
Diffstat (limited to 'local/utility.py')
-rw-r--r--local/utility.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/local/utility.py b/local/utility.py
index 86e1b91..0393ae7 100644
--- a/local/utility.py
+++ b/local/utility.py
@@ -100,9 +100,9 @@ def maxLen(msg, maxn=400, splitLines=True):
ret = msg
return ret
-
+# TODO: Use a better data structure for this?
def colorAction(action):
- """Give an action string (e.g. created, edited) and get a nice IRC colouring"""
+ """Give an action string (e.g. created, edited) and get a nice IRC colouring."""
# Fix past tense for some github verbs
if action in ["synchronize"]:
@@ -113,9 +113,10 @@ def colorAction(action):
return ircutils.bold(ircutils.mircColor(action, "green"))
if action in ["deleted", "closed", "re-tagged", "deleted tag",
"failed", "errored", "failure", "still failing",
- "broken", "error"]:
+ "broken", "error", "removed"]:
return ircutils.bold(ircutils.mircColor(action, "red"))
- if action in ["assigned", "merged", "synchronized"]:
+ if action in ["assigned", "self-assigned", "merged", "synchronized",
+ "labeled"]:
return ircutils.bold(ircutils.mircColor(action, "light blue"))
if action in ["reopened", "pending"]:
return ircutils.bold(ircutils.mircColor(action, "blue"))

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