Replies: 2 comments
-
if anyone needs this for future, i was able to workaround this with: project_details = gl.http_get(path= f"/projects/{project_id}?license=True")
print(project_details['license']) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Probably can do:
Or something like that. Additional arguments can be specified in the call to See: https://python-gitlab.readthedocs.io/en/main/api-usage.html#managers Section in there that contains the text "python-gitlab allows to send any data to the GitLab server when making queries." |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description of the problem, including code/CLI snippet
I currently cannot see a method to access the license data of a project.
there is an extension in the gitlab API to return the license of a project (eg https://gitlab.com/api/v4/projects/19352197?license=true) which will add the "license" block to the project endpoint response.
Expected Behavior
ability to access the license on a project
Actual Behavior
no ability (or docs) to access the license block on a gitlab project page
Specifications
Beta Was this translation helpful? Give feedback.
All reactions