summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorxdavidwu <xdavidwuph@gmail.com>2019-10-16 21:16:35 +0800
committerGitHub <noreply@github.com>2019-10-16 21:16:35 +0800
commite68094317ff6905049e464a59731fe4ab23521de (patch)
treee1160e4122e89c76c650a762a3bc47a5bcc5e657 /docs/gl_objects
parent42a1ba6be175a9838c589cb1e40636b3910db505 (diff)
downloadgitlab-e68094317ff6905049e464a59731fe4ab23521de.tar.gz
docs(project): fix group project example
GroupManager.search is removed since 9a66d78, use list(search='keyword') instead
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/projects.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index c0f92ae..15d8fe4 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -81,7 +81,7 @@ Create a project in a group::
# You need to get the id of the group, then use the namespace_id attribute
# to create the group
- group_id = gl.groups.search('my-group')[0].id
+ group_id = gl.groups.list(search='my-group')[0].id
project = gl.projects.create({'name': 'myrepo', 'namespace_id': group_id})
Update a project::