diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-03-12 13:01:39 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-03-12 13:01:39 +0100 |
commit | 3ef438fb290550859ec332fec8f7ee4a879ead69 (patch) | |
tree | c61bacac7e1868de48c65e9f34d77c6a9fe316c2 /gitautodeploy/parsers/gitlab.py | |
parent | 5663f89dc8758a8fe3f39336d1054fee7b00680c (diff) | |
parent | 997e40d045ee710b74a9b35afaa5dc26b7c66bc0 (diff) | |
download | Git-Auto-Deploy-3ef438fb290550859ec332fec8f7ee4a879ead69.zip Git-Auto-Deploy-3ef438fb290550859ec332fec8f7ee4a879ead69.tar.gz Git-Auto-Deploy-3ef438fb290550859ec332fec8f7ee4a879ead69.tar.bz2 |
Merge
Diffstat (limited to 'gitautodeploy/parsers/gitlab.py')
-rw-r--r-- | gitautodeploy/parsers/gitlab.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gitautodeploy/parsers/gitlab.py b/gitautodeploy/parsers/gitlab.py index 6ebdb6f..580fed2 100644 --- a/gitautodeploy/parsers/gitlab.py +++ b/gitautodeploy/parsers/gitlab.py @@ -26,6 +26,14 @@ class GitLabRequestParser(WebhookRequestParser): if k in data['repository']: repo_urls.append(data['repository'][k]) + # extract the branch + if 'ref' in data: + ref = data['ref'] + + # set the action + if 'object_kind' in data: + action = data['object_kind'] + # Get a list of configured repositories that matches the incoming web hook reqeust repo_configs = self.get_matching_repo_configs(repo_urls) |