8000 docs(project): add example on getting a single project using name wit… · python-gitlab/python-gitlab@ef16a97 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef16a97

Browse files
PsycojokerJohnVillalovos
authored andcommitted
docs(project): add example on getting a single project using name with namespace
1 parent d3ea203 commit ef16a97
< 8000 div class="prc-PageLayout-Pane-Vl5LI" data-resizable="true" style="--spacing:var(--spacing-normal);--pane-min-width:256px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));--pane-width-size:var(--pane-width-medium);--pane-width:296px">

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/gl_objects/projects.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Get a single project::
6666
project_id = 851
6767
project = gl.projects.get(project_id)
6868

69+
# Get a project by name with namespace
70+
project_name_with_namespace = "namespace/project_name"
71+
project = gl.projects.get(project_name_with_namespace)
72+
6973
Create a project::
7074

7175
project = gl.projects.create({'name': 'project1'})

0 commit comments

Comments
 (0)
0