Skip to content

Commit

Permalink
fix: added a correct repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
hosekpeter committed Nov 22, 2024
1 parent 89603b5 commit 2070219
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions internal/pkg/service/templates/api/config/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func DefaultRepositories() Repositories {
},
{
Type: model.RepositoryTypeGit,
Name: repository.DefaultTemplateRepositoryName,
Name: repository.DefaultTemplateRepositoryNameDev,
URL: repository.DefaultTemplateRepositoryURL,
Ref: repository.DefaultTemplateRepositoryRefDev,
},
Expand All @@ -40,9 +40,9 @@ func DefaultRepositories() Repositories {
},
{
Type: model.RepositoryTypeGit,
Name: repository.ComponentsTemplateRepositoryNameDev,
Name: repository.ComponentsTemplateRepositoryNameBeta,
URL: repository.ComponentsTemplateRepositoryURL,
Ref: repository.DefaultTemplateRepositoryRefDev,
Ref: repository.DefaultTemplateRepositoryRefBeta,
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/service/templates/dependencies/reqproject.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func (v *projectRequestScope) ProjectRepositories() *model.TemplateRepositories
for _, repo := range v.RepositoryManager().DefaultRepositories() {
switch repo.Name {
case repository.ComponentsTemplateRepositoryName:
if repo.Ref == repository.DefaultTemplateRepositoryRefMain && features.Has(repository.FeatureComponentsTemplateRepositoryDev) {
repo.Ref = repository.DefaultTemplateRepositoryRefDev
if repo.Ref == repository.DefaultTemplateRepositoryRefMain && features.Has(repository.FeatureComponentsTemplateRepositoryBeta) {
repo.Ref = repository.DefaultTemplateRepositoryRefBeta
}
case repository.DefaultTemplateRepositoryName:
if repo.Ref == repository.DefaultTemplateRepositoryRefMain {
Expand Down
6 changes: 3 additions & 3 deletions internal/pkg/template/repository/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
)

const (
ComponentsTemplateRepositoryName = "keboola-components"
ComponentsTemplateRepositoryNameDev = "keboola-components-dev"
ComponentsTemplateRepositoryName = "keboola-components"
ComponentsTemplateRepositoryNameBeta = "keboola-components-beta"

ComponentsTemplateRepositoryURL = "https://github.com/keboola/keboola-as-code-templates-components.git"

FeatureComponentsTemplateRepositoryDev = "components-repository-dev"
FeatureComponentsTemplateRepositoryBeta = "components-repository-beta"
)

func ComponentsRepository() model.TemplateRepository {
Expand Down

0 comments on commit 2070219

Please sign in to comment.