Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3ac32f

Browse files
author
Gauvain Pocentek
committed
Merge branch 'master' of github.com:gpocentek/python-gitlab
2 parentse6ffd69 +e1f5e15 commite3ac32f

File tree

5 files changed

+32
-3
lines changed

5 files changed

+32
-3
lines changed

‎docs/api-objects.rst

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 21 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp