Skip to content

Commit d853a76

Browse files
authored
Merge pull request #911 from xdavidwu/fix-project-doc
docs(project): fix group project example
2 parents 42a1ba6 + e680943 commit d853a76

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)