-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Not Found error when running danger with GitLab CE without MR approvals API #1106
Comments
Ah yeah, this makes sense, I guess that call will need to be failable /cc @kelvin-lemon |
Any update here ? |
You're welcome to take a look at fixing it 👍🏻 |
The bug was introduced with #1098 Workaround: Use a version lower than |
Is resolving yet? Currently in gitlab(11.9.9) and danger(10.7.1) this issue still exists. |
wow this sucks. spent so much time trying to figure out wth was going on here. please fix, or just say gitlab is unsupported. |
You're welcome to give it a shot |
Hi @orta, I'd love to. I can tell you exactly what the problem is. #1098 introduced the use of an enterprise edition API, which breaks danger for all community edition gitlab servers. The breaking change is that danger tries to access an url like I think gitlab prefers the project id is used instead of the project group+name, but the enterprise edition supports group+name where community edition doesn't. Super annoying. The Ruby version has the same issue by the way. Do you think it's I think it's just incorrect environment variables that are in use. I'm no typescript expert, but I should be able to fix it. This might just fix it too: #994 |
Nevermind, it does work just fine, I just used the wrong ID. |
What isn't working? We are using DangerJS successfully on a GitLab CE instance since #1406 has been merged on the latest released version 11.3.1. |
I'm getting a 404 with the project name in the url, but 200 with the project id in the url, so maybe this isn't actually the right issue for it. I'm working on a patch |
Describe the bug
Our builds have started failing with the following error since using v10.6.2:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Danger shouldn't fail, either by allowing the user to configure skipping using this approvals API or ignoring the error and carrying on without these API results. Or maybe there is a more elegant solution that I am not thinking of at the moment.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Additional context
Also according to https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals this API will be moved to GitLab Premium only in 13.9, so expecting the API to exist/work might become problematic then as well.
Probably introduced in #1098.
The text was updated successfully, but these errors were encountered: