aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-01 00:09:28 +0000
committerGravatar jesopo2020-02-01 00:09:28 +0000
commitb4b610ec185d4ef8bc5e1a4eefe85fe3032482dc (patch)
treea064915c8fffbe51637663755fd9aa9b49bd53b7 /modules
parentthrow 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.py4
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"]