diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-03-12 11:06:04 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-03-12 11:06:04 +0100 |
commit | e48e4aca9650b241d1f1e038fdcab125b7c95656 (patch) | |
tree | 7de3bd17c5c4f8798508552817d22898c8a9ea3d /gitlab/objects.py | |
parent | e46c18898deb8579d4fee0e76bfc17abed12c512 (diff) | |
download | gitlab-e48e4aca9650b241d1f1e038fdcab125b7c95656.tar.gz |
add a note about project search API
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 34a50e6..c5a47a0 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1516,6 +1516,16 @@ class ProjectManager(BaseManager): def search(self, query, **kwargs): """Search projects by name. + .. note:: + + The search is only performed on the project name (not on the + namespace or the description). To perform a smarter search, use the + ``search`` argument of the ``list()`` method: + + .. code-block:: python + + gl.projects.list(search=your_search_string) + Args: query (str): The query string to send to GitLab for the search. all (bool): If True, return all the items, without pagination |