| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ Examples | |||
| 21 | 21 | ||
| 22 | 22 | Get a list of releases from a project:: | |
| 23 | 23 | ||
| 24 | + project = gl.projects.get(project_id, lazy=True) | ||
| 24 | 25 | release = project.releases.list() | |
| 25 | 26 | ||
| 26 | 27 | Get a single release:: | |
@@ -45,6 +46,14 @@ Delete a release:: | |||
| 45 | 46 | # delete object directly | |
| 46 | 47 | release.delete() | |
| 47 | 48 | ||
| 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 | + | ||
| 48 | 57 | Project release links | |
| 49 | 58 | ===================== | |
| 50 | 59 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments