Revert "support gitea respository["private"] as well as project["visibility_level"]"

This reverts commit 7f659837ab.
This commit is contained in:
jesopo 2020-02-01 00:09:28 +00:00
parent e239d7a09c
commit b4b610ec18

View file

@ -50,9 +50,9 @@ ISSUE_ACTIONS = {
class GitLab(object): class GitLab(object):
def is_private(self, data, headers): 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 not data["project"]["visibility_level"] == 20
return data.get("repository", {}).get("private", False) return False
def names(self, data, headers): def names(self, data, headers):
full_name = data["project"]["path_with_namespace"] full_name = data["project"]["path_with_namespace"]