aboutsummaryrefslogtreecommitdiffstats
path: root/local
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-11-13 00:48:14 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-11-13 00:48:14 +0200
commita01e5e5e16c7a119d7fbac00bb5c4722344ff08e (patch)
tree4414ad31f16d49b6fc120f3f262e9badb9fc862a /local
parent664fb0d72095f4a606028bb40a88d09b0161cb1c (diff)
downloadsupybot_github-a01e5e5e16c7a119d7fbac00bb5c4722344ff08e.tar.gz
supybot_github-a01e5e5e16c7a119d7fbac00bb5c4722344ff08e.tar.bz2
supybot_github-a01e5e5e16c7a119d7fbac00bb5c4722344ff08e.zip
Use a better verb for PR synchronisation
Diffstat (limited to 'local')
-rw-r--r--local/utility.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/local/utility.py b/local/utility.py
index fbf2db4..86e1b91 100644
--- a/local/utility.py
+++ b/local/utility.py
@@ -104,6 +104,10 @@ def maxLen(msg, maxn=400, splitLines=True):
def colorAction(action):
"""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"]:
+ action += "d"
+
if action in ["created", "opened", "tagged", "success", "passed", "fixed",
"published", "completed", "ready"]:
return ircutils.bold(ircutils.mircColor(action, "green"))
@@ -111,7 +115,7 @@ def colorAction(action):
"failed", "errored", "failure", "still failing",
"broken", "error"]:
return ircutils.bold(ircutils.mircColor(action, "red"))
- if action in ["assigned", "merged", "synchronize"]:
+ if action in ["assigned", "merged", "synchronized"]:
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