Skip to content

Commit

Permalink
chore: change _repr_attr for Project to be path_with_namespace
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
JohnVillalovos committed Jul 29, 2022
1 parent 17414f7 commit 7cccefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/v4/objects/projects.py
Expand Up @@ -155,7 +155,7 @@ class ProjectGroupManager(ListMixin, RESTManager):


class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTObject):
_repr_attr = "path"
_repr_attr = "path_with_namespace"

access_tokens: ProjectAccessTokenManager
accessrequests: ProjectAccessRequestManager
Expand Down

0 comments on commit 7cccefe

Please sign in to comment.