diff options
| author | 2019-10-25 22:32:01 +0100 | |
|---|---|---|
| committer | 2019-10-25 22:32:01 +0100 | |
| commit | bbd7a589147c1add43de2a72c64edfed3176c897 (patch) | |
| tree | 8a5e6ef47e6fdc98e519b429933d428904a9e208 /modules | |
| parent | add !cmute/!cunmute to set +m/-m on current channel (diff) | |
| signature | ||
support gitlab subgroups in git_webhooks
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/git_webhooks/gitlab.py | 3 |
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 |
