diff options
| author | 2020-02-01 00:09:28 +0000 | |
|---|---|---|
| committer | 2020-02-01 00:09:28 +0000 | |
| commit | b4b610ec185d4ef8bc5e1a4eefe85fe3032482dc (patch) | |
| tree | a064915c8fffbe51637663755fd9aa9b49bd53b7 /modules | |
| parent | throw helpful errors when RSS pages cannot be decoded (diff) | |
| signature | ||
Revert "support gitea respository["private"] as well as project["visibility_level"]"
This reverts commit 7f659837abd3c3c8c16db51cffbeb2ffa879765f.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/git_webhooks/gitlab.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 19d17ea9..644ce823 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -50,9 +50,9 @@ ISSUE_ACTIONS = { class GitLab(object): def is_private(self, data, headers): - if "visibility_level" in data.get("project", {}): + if "project" in data: return not data["project"]["visibility_level"] == 20 - return data.get("repository", {}).get("private", False) + return False def names(self, data, headers): full_name = data["project"]["path_with_namespace"] |
