diff options
author | John L. Villalovos <john@sodarock.com> | 2022-07-29 10:18:28 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-07-29 10:18:28 -0700 |
commit | 7cccefe6da0e90391953734d95debab2fe07ea49 (patch) | |
tree | 92b3b42f10031e9771282fad06d2985ca97045ca | |
parent | 17414f787a70a0d916193ac71bccce0297c4e4e8 (diff) | |
download | gitlab-7cccefe6da0e90391953734d95debab2fe07ea49.tar.gz |
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"
-rw-r--r-- | gitlab/v4/objects/projects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index 8f3b381..00c0d7e 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -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 |