diff options
-rw-r--r-- | README.rst | 6 | ||||
-rw-r--r-- | docs/gl_objects/builds.rst | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -20,12 +20,6 @@ Python GitLab It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``). -Maintainer(s) wanted -==================== - -We are looking for new maintainer(s) for this project. See -https://github.com/python-gitlab/python-gitlab/issues/596. - Installation ============ diff --git a/docs/gl_objects/builds.rst b/docs/gl_objects/builds.rst index 51e7496..ee45090 100644 --- a/docs/gl_objects/builds.rst +++ b/docs/gl_objects/builds.rst @@ -141,6 +141,13 @@ Delete a schedule:: sched.delete() +List schedule variables:: + + # note: you need to use get() to retrieve the schedule variables. The + # attribute is not present in the response of a list() call + sched = projects.pipelineschedules.get(schedule_id) + vars = sched.attributes['variables'] + Create a schedule variable:: var = sched.variables.create({'key': 'foo', 'value': 'bar'}) |