aboutsummaryrefslogtreecommitdiffstats
path: root/local/handler
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-12-30 13:24:22 +0200
committerkongr45gpen <electrovesta@gmail.com>2014-12-30 13:24:22 +0200
commit0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c (patch)
tree0a2197e77dbcd47e513df05ffebc66d2abf6e35f /local/handler
parent3143ab518d7fbf124bf361658981da50b546191d (diff)
downloadsupybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.tar.gz
supybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.tar.bz2
supybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.zip
Add support for pushes on v3 of the Github API
Diffstat (limited to 'local/handler')
-rw-r--r--local/handler/PushHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/local/handler/PushHandler.py b/local/handler/PushHandler.py
index f7c1141..96b9339 100644
--- a/local/handler/PushHandler.py
+++ b/local/handler/PushHandler.py
@@ -14,7 +14,7 @@ def handle(data):
isTag = False
isMerge = False
- branched = data['created'] or data['deleted'] or ref[1] == "tags" or 'base_ref' in data
+ branched = data['created'] or data['deleted'] or ref[1] == "tags" or ('base_ref' in data and data['base_ref'])
branchFrom = ''
tagFrom = ''

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