@@ -18,29 +18,29 @@ package org.scalasteward.core.vcs
1818
1919import io .chrisdavenport .log4cats .Logger
2020import org .scalasteward .core .application .Config
21- import org .scalasteward .core .application .SupportedVCS .{Bitbucket , BitbucketServer , GitHub , Gitlab }
21+ import org .scalasteward .core .application .SupportedVCS .{Bitbucket , BitbucketServer , GitHub , GitLab }
2222import org .scalasteward .core .util .{HttpJsonClient , MonadThrow }
23- import org .scalasteward .core .vcs .bitbucket .http4s . Http4sBitbucketApiAlg
24- import org .scalasteward .core .vcs .bitbucketserver .http4s . Http4sBitbucketServerApiAlg
23+ import org .scalasteward .core .vcs .bitbucket .BitbucketApiAlg
24+ import org .scalasteward .core .vcs .bitbucketserver .BitbucketServerApiAlg
2525import org .scalasteward .core .vcs .data .AuthenticatedUser
26- import org .scalasteward .core .vcs .github .http4s . Http4sGitHubApiAlg
27- import org .scalasteward .core .vcs .gitlab .http4s . Http4sGitLabApiAlg
26+ import org .scalasteward .core .vcs .github .GitHubApiAlg
27+ import org .scalasteward .core .vcs .gitlab .GitLabApiAlg
2828
2929final class VCSSelection [F [_]](implicit
3030 client : HttpJsonClient [F ],
3131 user : AuthenticatedUser ,
3232 logger : Logger [F ],
3333 F : MonadThrow [F ]
3434) {
35- private def github (config : Config ): Http4sGitHubApiAlg [F ] = {
36- import org .scalasteward .core .vcs .github .http4s . authentication .addCredentials
35+ private def github (config : Config ): GitHubApiAlg [F ] = {
36+ import org .scalasteward .core .vcs .github .authentication .addCredentials
3737
38- new Http4sGitHubApiAlg [F ](config.vcsApiHost, _ => addCredentials(user))
38+ new GitHubApiAlg [F ](config.vcsApiHost, _ => addCredentials(user))
3939 }
4040
41- private def gitlab (config : Config ): Http4sGitLabApiAlg [F ] = {
42- import org .scalasteward .core .vcs .gitlab .http4s . authentication .addCredentials
43- new Http4sGitLabApiAlg [F ](
41+ private def gitlab (config : Config ): GitLabApiAlg [F ] = {
42+ import org .scalasteward .core .vcs .gitlab .authentication .addCredentials
43+ new GitLabApiAlg [F ](
4444 config.vcsApiHost,
4545 user,
4646 _ => addCredentials(user),
@@ -49,16 +49,16 @@ final class VCSSelection[F[_]](implicit
4949 )
5050 }
5151
52- private def bitbucket (config : Config ): Http4sBitbucketApiAlg [F ] = {
53- import org .scalasteward .core .vcs .bitbucket .http4s . authentication .addCredentials
52+ private def bitbucket (config : Config ): BitbucketApiAlg [F ] = {
53+ import org .scalasteward .core .vcs .bitbucket .authentication .addCredentials
5454
55- new Http4sBitbucketApiAlg (config.vcsApiHost, user, _ => addCredentials(user), config.doNotFork)
55+ new BitbucketApiAlg (config.vcsApiHost, user, _ => addCredentials(user), config.doNotFork)
5656 }
5757
58- private def bitbucketServer (config : Config ): Http4sBitbucketServerApiAlg [F ] = {
59- import org .scalasteward .core .vcs .bitbucket .http4s . authentication .addCredentials
58+ private def bitbucketServer (config : Config ): BitbucketServerApiAlg [F ] = {
59+ import org .scalasteward .core .vcs .bitbucket .authentication .addCredentials
6060
61- new Http4sBitbucketServerApiAlg [F ](
61+ new BitbucketServerApiAlg [F ](
6262 config.vcsApiHost,
6363 _ => addCredentials(user),
6464 config.bitbucketServerUseDefaultReviewers
@@ -68,7 +68,7 @@ final class VCSSelection[F[_]](implicit
6868 def getAlg (config : Config ): VCSApiAlg [F ] =
6969 config.vcsType match {
7070 case GitHub => github(config)
71- case Gitlab => gitlab(config)
71+ case GitLab => gitlab(config)
7272 case Bitbucket => bitbucket(config)
7373 case BitbucketServer => bitbucketServer(config)
7474 }
0 commit comments