This PR fixes a bug where danger would not work with (some?) self-hosted instances.
Before this patch, I got a 404 from our self-hosted Gitlab CE API. Now it works as expected.
It also fixes issues like https://github.com/danger/danger/issues/968 because the problem is deriving a valid URL for the project. Since PROJECT_ID is unique on a gitlab instance, you can always just use that instead of the PROJECT_PATH.
I tested this and it works. I'm not sure how to run tests in ruby locally, so CI will probably fail.
This PR fixes a bug where danger would not work with (some?) self-hosted instances.
Before this patch, I got a 404 from our self-hosted Gitlab CE API. Now it works as expected.
It also fixes issues like https://github.com/danger/danger/issues/968 because the problem is deriving a valid URL for the project. Since PROJECT_ID is unique on a gitlab instance, you can always just use that instead of the PROJECT_PATH.
I tested this and it works. I'm not sure how to run tests in ruby locally, so CI will probably fail.