Skip to content

Commit

Permalink
Write custom Gitlab URL to gitlab-domains composer option. Fixes #165.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickygerritsen committed May 27, 2020
1 parent ba6ac23 commit 980527e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 980527e

Please sign in to comment.