Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/gl_objects/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Examples

Get a list of releases from a project::

project = gl.projects.get(project_id, lazy=True)
release = project.releases.list()

Get a single release::
Expand All @@ -45,6 +46,14 @@ Delete a release::
# delete object directly
release.delete()

.. note::

The Releases API is one of the few working with ``CI_JOB_TOKEN``, but the project can't
be fetched with the token. Thus use `lazy` for the project as in the above example.

Also be aware that most of the capabilities of the endpoint were not accessible with
``CI_JOB_TOKEN`` until Gitlab version 14.5.

Project release links
=====================

Expand Down