Skip to content

Commit

Permalink
Fix issue when hostingUrl is still github.com
Browse files Browse the repository at this point in the history
  • Loading branch information
necosta committed Feb 17, 2023
1 parent 29979de commit 0554c40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/microsites/MicrositeKeys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ trait MicrositeAutoImportSettings extends MicrositeKeys {

protected[this] def buildGithubConfig(hostingUrl: String)(implicit log: Logger): GithubConfig =
Either.catchOnly[MalformedURLException](new URL(hostingUrl)) match {
case Right(url) if url.getHost == "github.com" => GithubConfig.default
case Right(url) if url.getProtocol.startsWith("https") =>
val replaceHost: String => String = s => s.replace("github.com", url.getHost)
GithubConfig.default
Expand Down

0 comments on commit 0554c40

Please sign in to comment.