summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-10-16 16:31:29 +0200
committerGitHub <noreply@github.com>2019-10-16 16:31:29 +0200
commitd853a767ac8835615e0fded3087f55ca8594c1ed (patch)
treee1160e4122e89c76c650a762a3bc47a5bcc5e657 /docs/gl_objects
parent42a1ba6be175a9838c589cb1e40636b3910db505 (diff)
parente68094317ff6905049e464a59731fe4ab23521de (diff)
downloadgitlab-d853a767ac8835615e0fded3087f55ca8594c1ed.tar.gz
Merge pull request #911 from xdavidwu/fix-project-doc
docs(project): fix group project example
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::