aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git_webhooks')
-rw-r--r--modules/git_webhooks/gitlab.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py
index 63619519..56cd968c 100644
--- a/modules/git_webhooks/gitlab.py
+++ b/modules/git_webhooks/gitlab.py
@@ -52,8 +52,7 @@ class GitLab(object):
def names(self, data, headers):
full_name = data["project"]["path_with_namespace"]
- repo_username = data["project"]["namespace"]
- repo_name = data["project"]["name"]
+ repo_username, repo_name = full_name.split("/", 1)[0]
return full_name, repo_username, repo_name, None