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/handler/NetlifyHandler.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/handler/NetlifyHandler.py')
-rw-r--r-- | local/handler/NetlifyHandler.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/local/handler/NetlifyHandler.py b/local/handler/NetlifyHandler.py new file mode 100644 index 0000000..daa802f --- /dev/null +++ b/local/handler/NetlifyHandler.py @@ -0,0 +1,13 @@ +from ..utility import * + +def handle(data, theme): + if isStatusVisible(data['site_id'], data['state'].lower(), 'showSuccessfulDeployMessages'): + theme.deployment( + branch = data['branch'], + repo = data['name'], + status = data['state'], + commitId = data['commit_ref'], + commitMessage = data['title'], + commitAuthor = data['commit_url'].split('/')[3], #TODO: Make this show the proper author + url = getShortURL(data['url']) + ) |