Wrong project URL used with self-hosted GitLab instance
I'm not sure if this is an issue of glab
or a configuration issue of my GitLab instance:
The project that I can access on my self-hosted GitLab instance under https://mygitlab.example.xyz/someuser/someproject
seems to have an API endpoint using the numerical project ID instead of the project name, in my case https://mygitlab.example.xyz/api/v4/projects/someuser/7
instead of https://mygitlab.example.xyz/api/v4/projects/someuser/someproject
.
However, glab
wants to use the project name instead of the project ID, so when I e.g. try to glab mr list
I get
1 error occurred:
* someuser/someproject: GET https://mygitlab.example.xyz/api/v4/projects/someuser/someproject: 404 {message: 404 Project Not Found}
Indeed, when I try to access that URL manually, I get a 404 error, while with someproject
replaced by the numerical project ID 7
I get a valid response from the GitLab server.