Skip to content

Commit 7cccefe

Browse files
chore: change _repr_attr for Project to be path_with_namespace
Previously `_repr_attr` was `path` but that only gives the basename of the path. So https://gitlab.com/gitlab-org/gitlab would only show "gitlab". Using `path_with_namespace` it will now show "gitlab-org/gitlab"
1 parent 17414f7 commit 7cccefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/objects/projects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class ProjectGroupManager(ListMixin, RESTManager):
155155

156156

157157
class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTObject):
158-
_repr_attr = "path"
158+
_repr_attr = "path_with_namespace"
159159

160160
access_tokens: ProjectAccessTokenManager
161161
accessrequests: ProjectAccessRequestManager

0 commit comments

Comments
 (0)