From e1828b15ac96844307dadba1440b22a836d4b12b Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Mon, 11 Oct 2021 23:32:10 +0200 Subject: feat(objects): list starred projects of a user --- docs/gl_objects/projects.rst | 5 +++++ docs/gl_objects/users.rst | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'docs/gl_objects') diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index 0b251ea..c00c554 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -55,6 +55,11 @@ Results can also be sorted using the following parameters: # Search projects projects = gl.projects.list(search='keyword') +.. note:: + + To list the starred projects of another user, see the + :ref:`Users API docs `. + .. note:: Fetching a list of projects, doesn't include all attributes of all projects. diff --git a/docs/gl_objects/users.rst b/docs/gl_objects/users.rst index dd6db6a..aa3a660 100644 --- a/docs/gl_objects/users.rst +++ b/docs/gl_objects/users.rst @@ -1,3 +1,5 @@ +.. _users_examples: + ###################### Users and current user ###################### @@ -19,7 +21,10 @@ References + :class:`gitlab.v4.objects.UserManager` + :attr:`gitlab.Gitlab.users` -* GitLab API: https://docs.gitlab.com/ce/api/users.html +* GitLab API: + + + https://docs.gitlab.com/ce/api/users.html + + https://docs.gitlab.com/ee/api/projects.html#list-projects-starred-by-a-user Examples -------- @@ -97,6 +102,9 @@ Get the followings of a user user.following_users.list() +List a user's starred projects + + user.starred_projects.list() User custom attributes ====================== -- cgit v1.2.1