Skip to content

Commit 2457823

Browse files
author
Gauvain Pocentek
committed
Project: add VISIBILITY_* constants
They should be there instead of having them in the Group class. Variables in Group are keeped for compatibility.
1 parent 0be4761 commit 2457823

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/objects.py

+4
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,10 @@ class Project(GitlabObject):
15801580
('variables', ProjectVariableManager, [('project_id', 'id')]),
15811581
]
15821582

1583+
VISIBILITY_PRIVATE = 0
1584+
VISIBILITY_INTERNAL = 10
1585+
VISIBILITY_PUBLIC = 20
1586+
15831587
def Branch(self, id=None, **kwargs):
15841588
warnings.warn("`Branch` is deprecated, use `branches` instead",
15851589
DeprecationWarning)

0 commit comments

Comments
 (0)