Open riedeljan opened 3 years ago
If you want I can tackle this. Have some time this weekend that I'll be wrapping up my PR, I can include a fix in for this as well.
That‘s awesome, but I‘ve already got the fix in place, just need to finalize it ☺️
Am 13.08.2021 um 13:22 schrieb Ernest Mallett @.***>:
If you want I can tackle this. Have some time this weekend that I'll be wrapping up my PR, I can include a fix in for this as well.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
How is the status on this? Seems like dropdown with branches never gets any branch humm Something I can help with?
Hi! Didn't really work on this for a while since and would need to have a look. Last time I checked branches fetched fine 🤔 Can you describe what exactly happens on your end and possibly provide output from the dev console? @rafaelcanical
Yes sure :) First I opened GitLab - Setup and set all my settings. But dropdown doesn't fill with branches. This is what console returns:
On network tab, this request https://gitlab.com/users/sign_in
returns the following:
Headers seem to be set correctly
https://gitlab.com/rafaelcanical/api/v4/projects/{projectId}/repository/branches
Fails with status code 302. Doesn't return any response. Request headers seem to be correct
Maybe this is the correct way:
curl --header "PRIVATE-TOKEN: <Acces Token>" "https://gitlab.com/api/v4/projects/<Project ID>/repository/branches"
Hmm. U did provide a valid access token with correct scope in the config, right? I'll try to look this up within the day. Maybe some GitLab API changes happened or so.
Also feel free the check out the code and see if you find the culprit before me :) MRs are welcome
Its entirely my fault. I was looking in the wrong place, kept checking token and project id correct, but what was wrong was a small typo on baseUrl.
Works great , sorry :/
When the setup ist completed first the modal has to be submitted and re-opened before a branch can be selected. Same bug occurs when creating a new branch from within the setup.