aboutsummaryrefslogtreecommitdiffstats
path: root/local/theme/CompactTheme.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-05-07 14:43:14 +0300
committerkongr45gpen <electrovesta@gmail.com>2017-05-07 14:43:14 +0300
commit03aad42d43471714aba380159b2e68ef1ac2d4a7 (patch)
treec2042415155b072eebd3dd3309aecabddcc7c84a /local/theme/CompactTheme.py
parent2771ccfa74de49100a88a0cdd38ee4e5a84afcbc (diff)
downloadsupybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.tar.gz
supybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.tar.bz2
supybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.zip
Add support for Netlify
Diffstat (limited to 'local/theme/CompactTheme.py')
-rw-r--r--local/theme/CompactTheme.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/local/theme/CompactTheme.py b/local/theme/CompactTheme.py
index a1090c9..4b1c86b 100644
--- a/local/theme/CompactTheme.py
+++ b/local/theme/CompactTheme.py
@@ -24,3 +24,16 @@ class CompactTheme(DefaultTheme):
buildUrl
))
))
+
+ def deployment(self, branch, repo, status, commitId, commitMessage, commitAuthor, url):
+ self.msgs.append( "%s @ %s: %s %s: deploy %s %s" % (
+ ircutils.bold(ircutils.mircColor(branch, "blue")),
+ ircutils.bold(repo),
+ ircutils.mircColor(commitAuthor, "green"),
+ ircutils.mircColor(commitId[0:6], "dark grey"),
+ colorAction(status.lower()),
+ self.enclose("%s - %s" % (
+ ircutils.mircColor(maxLen(commitMessage, 50), "dark gray"),
+ url
+ ))
+ ))

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