The API seems to not consider all parameters as the branch name is ignored in the APIv4 request.
It only fetches the master branch no matter the branch specified in the params.
Suggestion
Gitlab api v4 now use the param sha to fetch either a branch or a sha.
In our current we use the param ref that does not work anymore on archives.
The repo name in the archive does not have the same name according to the value provided to the sha parameter (branch or sha), so the 2 cases must be handled.
Problem
The API seems to not consider all parameters as the branch name is ignored in the APIv4 request. It only fetches the
master
branch no matter the branch specified in the params.Suggestion
Gitlab api v4 now use the param
sha
to fetch either abranch
or asha
. In our current we use the paramref
that does not work anymore onarchives
.So the url should be
The repo name in the archive does not have the same name according to the value provided to the sha parameter (branch or sha), so the 2 cases must be handled.