Skip to content

Commit e48e4ac

Browse files
author
Gauvain Pocentek
committed
add a note about project search API
1 parent e46c188 commit e48e4ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gitlab/objects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,16 @@ class ProjectManager(BaseManager):
15161516
def search(self, query, **kwargs):
15171517
"""Search projects by name.
15181518
1519+
.. note::
1520+
1521+
The search is only performed on the project name (not on the
1522+
namespace or the description). To perform a smarter search, use the
1523+
``search`` argument of the ``list()`` method:
1524+
1525+
.. code-block:: python
1526+
1527+
gl.projects.list(search=your_search_string)
1528+
15191529
Args:
15201530
query (str): The query string to send to GitLab for the search.
15211531
all (bool): If True, return all the items, without pagination

0 commit comments

Comments
 (0)