Improve GitLab CI support for MRs from forks
Current GitLab CI provider gets the repoSlug from the environment variable CI_PROJECT_PATH, which by default points to the project from where the MR is created. This works fine for MRs coming from the same project, but not for MRs coming from forks. Starting on Gitlab 11.6 there is CI_MERGE_REQUEST_PROJECT_PATH environment variable that works for both cases.
Great - would be good to get a test for this, but other than that - looks perfect. Thanks!
Yes, sorry about that! I'll add a test. Thank you!
Ja, tut mir leid! Ich füge einen Test hinzu. Vielen Dank!
Der aktuelle GitLab CI-Anbieter ruft den repoSlug aus der Umgebungsvariablen ab, die standardmäßig auf das Projekt verweist, aus dem der MR erstellt wird. Dies funktioniert gut für MRs, die aus demselben Projekt stammen, aber nicht für MRs, die von Forks kommen. Ab Gitlab 11.6 gibt es
CI_MERGE_REQUEST_PROJECT_PATHUmgebungsvariable, die für beide Fälle funktioniert.CI_PROJECT_PATH
Merge without tests then?