Skip to content

Commit e3ac32f

Browse files
author
Gauvain Pocentek
committed
Merge branch 'master' of github.com:gpocentek/python-gitlab
2 parents e6ffd69 + e1f5e15 commit e3ac32f

File tree

5 files changed

+32
-3
lines changed

5 files changed

+32
-3
lines changed

docs/api-objects.rst

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ API objects manipulation
99
gl_objects/commits
1010
gl_objects/groups
1111
gl_objects/issues
12+
gl_objects/namespaces
1213
gl_objects/projects
1314
gl_objects/runners
1415
gl_objects/users

docs/api-usage.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ actions on the GitLab resources. For example:
9999

100100
.. code-block:: python
101101
102-
# get a tarball of the git repository
102+
# star a git repository
103103
project = gl.projects.get(1)
104-
project.archive()
104+
project.star()
105105
106106
Pagination
107107
==========

docs/gl_objects/namespaces.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# list
2+
namespaces = gl.namespaces.list()
3+
# end list
4+
5+
# search
6+
namespaces = gl.namespaces.list(search='foo')
7+
# end search

docs/gl_objects/namespaces.rst

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
##########
2+
Namespaces
3+
##########
4+
5+
Use :class:`~gitlab.objects.Namespace` objects to manipulate namespaces. The
6+
:attr:`gitlab.Gitlab.namespaces` manager objects provides helper functions.
7+
8+
Examples
9+
========
10+
11+
List namespaces:
12+
13+
.. literalinclude:: namespaces.py
14+
:start-after: # list
15+
:end-before: # end list
16+
17+
Search namespaces:
18+
19+
.. literalinclude:: namespaces.py
20+
:start-after: # search
21+
:end-before: # end search

docs/gl_objects/runners.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Examples
1313

1414
Use the ``list()`` and ``all()`` methods to list runners.
1515

16-
The ``all()`` method accepts a ``scope`` parameter to filter the list. Allowed
16+
The ``all()`` method accepts a ``scope`` parameter to filter the list. Allowed
1717
values for this parameter are ``specific``, ``shared``, ``active``, ``paused``
1818
and ``online``.
1919

0 commit comments

Comments
 (0)