diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-12-30 13:24:22 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-12-30 13:24:22 +0200 |
commit | 0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c (patch) | |
tree | 0a2197e77dbcd47e513df05ffebc66d2abf6e35f /local/handler | |
parent | 3143ab518d7fbf124bf361658981da50b546191d (diff) | |
download | supybot_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.py | 2 |
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 = '' |