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

Commit5d973de

Browse files
committed
docs: enhance release docs for CI_JOB_TOKEN usage
1 parentff4b1cc commit5d973de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎docs/gl_objects/releases.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Examples
2121

2222
Get a list of releases from a project::
2323

24+
project = gl.projects.get(project_id, lazy=True)
2425
release = project.releases.list()
2526

2627
Get a single release::
@@ -45,6 +46,14 @@ Delete a release::
4546
# delete object directly
4647
release.delete()
4748

49+
..note::
50+
51+
The Releases API is one of the few working with ``CI_JOB_TOKEN``, but the project can't
52+
be fetched with the token. Thus use `lazy` for the project as in the above example.
53+
54+
Also be aware that most of the capabilities of the endpoint were not accessible with
55+
``CI_JOB_TOKEN`` until Gitlab version 14.5.
56+
4857
Project release links
4958
=====================
5059

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp