support gitlab subgroups in git_webhooks

This commit is contained in:
jesopo 2019-10-25 22:32:01 +01:00
parent ddc70a6bd9
commit bbd7a58914

View file

@ -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