diff options
author | kongr45gpen <electrovesta@gmail.com> | 2017-11-13 01:26:35 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2017-11-13 01:26:35 +0200 |
commit | 20056690507c2a69bfdb307ae5ade414dac5a795 (patch) | |
tree | 8575544ab2346cc3eabdb5c8e87dcd3d33a62106 /local/utility.py | |
parent | 1a87997aa49a8a3931525c910400bf8db141ddb7 (diff) | |
download | supybot_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.py | 9 |
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")) |