diff options
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-x | GitAutoDeploy.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index c915c50..7917672 100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -48,10 +48,9 @@ class GitAutoDeploy(BaseHTTPRequestHandler): items = [] # If payload is missing, we assume gitlab syntax. - if not 'payload' in post: + if not 'payload' in post and 'repository' in body: response = json.loads(body) - if 'repository' in body: - items.append(response['repository']['url']) + items.append(response['repository']['url']) # Otherwise, we assume github syntax. else: |