API - releases.create kicking Gitlab 422 error. #2677
-
Description of the problem, including code/CLI snippetI'm trying to create a release through the python library python-gitlab. Expected BehaviorIssuing the Actual BehaviorIssuing the function within API returns "gitlab.exceptions.GitlabHttpError: 422: Ref is not specified" Specifications
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Does the specified So if |
Beta Was this translation helpful? Give feedback.
-
Yeah dont mind be lol, I was understanding the docs wrong. I was interpreting it as if tag_name was passed via the request, ref was not needed even if the tag didnt exists on the repo. Ref was indeed needed alongside it. |
Beta Was this translation helpful? Give feedback.
Does the specified
tag_name
exist? The docs sayref
is required if the specifiedtag_name
does not exist.So if
v1.2.3
does not exist it will fail.