diff options
author | kongr45gpen <electrovesta@gmail.com> | 2017-05-07 14:43:14 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2017-05-07 14:43:14 +0300 |
commit | 03aad42d43471714aba380159b2e68ef1ac2d4a7 (patch) | |
tree | c2042415155b072eebd3dd3309aecabddcc7c84a /local/theme/DefaultTheme.py | |
parent | 2771ccfa74de49100a88a0cdd38ee4e5a84afcbc (diff) | |
download | supybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.tar.gz supybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.tar.bz2 supybot_github-03aad42d43471714aba380159b2e68ef1ac2d4a7.zip |
Add support for Netlify
Diffstat (limited to 'local/theme/DefaultTheme.py')
-rw-r--r-- | local/theme/DefaultTheme.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py index e6269d7..096311c 100644 --- a/local/theme/DefaultTheme.py +++ b/local/theme/DefaultTheme.py @@ -161,6 +161,19 @@ class DefaultTheme(Theme): )) )) + def deployment(self, branch, repo, status, commitId, commitMessage, commitAuthor, url): + self.msgs.append( "%s @ %s: Deployment status: %s * %s by %s %s") % ( + ircutils.bold(ircutils.mircColor(branch, "blue")), + ircutils.bold(repo), + colorAction(status.lower()), + ircutils.bold(commitId[0:6]), + ircutils.mircColor(commitAuthor, "green"), + self.enclose("%s - %s" % ( + ircutils.mircColor(maxLen(commitMessage, 50), "dark gray"), + url + )) + ) + def status(self, status, description, url): self.msgs.append( "%s: %s - %s %s" % ( self.repo(), |