Skip to content

Commit e680943

Browse files
authored
docs(project): fix group project example
GroupManager.search is removed since 9a66d78, use list(search='keyword') instead
1 parent 42a1ba6 commit e680943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gl_objects/projects.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Create a project in a group::
8181

8282
# You need to get the id of the group, then use the namespace_id attribute
8383
# to create the group
84-
group_id = gl.groups.search('my-group')[0].id
84+
group_id = gl.groups.list(search='my-group')[0].id
8585
project = gl.projects.create({'name': 'myrepo', 'namespace_id': group_id})
8686

8787
Update a project::

0 commit comments

Comments
 (0)