diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/git_webhooks/gitlab.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 644ce823..fe9264c4 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -55,7 +55,10 @@ class GitLab(object): return False def names(self, data, headers): - full_name = data["project"]["path_with_namespace"] + if "project" in data: + full_name = data["project"]["path_with_namespace"] + else: + full_name = data["project_name"].replace(" ", "") repo_username, repo_name = full_name.split("/", 1) organisation = None |
