From 980527ee19c19399e31f15fe72de1aa66d246728 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Wed, 27 May 2020 20:31:53 +0200 Subject: [PATCH] Write custom Gitlab URL to gitlab-domains composer option. Fixes #165. --- .../PackageSynchronizer/ComposerPackageSynchronizer.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php b/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php index 62ba62a3..e41e4b03 100644 --- a/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php +++ b/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php @@ -140,6 +140,13 @@ private function createConfig(Package $package, IOInterface $io): Config ], ], ]); + if ($package->type() === 'gitlab-oauth') { + $config->merge([ + 'config' => [ + 'gitlab-domains' => [(string)parse_url($this->gitlabUrl, PHP_URL_HOST)], + ], + ]); + } return $config; }