Skip to content

Commit

Permalink
fix: (gitops-catalog) update to gh org to konstructio and specify bra…
Browse files Browse the repository at this point in the history
…nch (#436)
  • Loading branch information
muse-sisay authored Oct 7, 2024
1 parent 05a277e commit e9c766f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/gitShim/gitopsCatalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import (
)

const (
KubefirstGitHubOrganization = "kubefirst"
KubefirstGitHubOrganization = "konstructio"
KubefirstGitopsCatalogRepository = "gitops-catalog"
basePath = "/"
branch = "main"
)

// GetGitopsCatalogRepo returns an object detailing the Kubefirst gitops catalog GitHub repository
Expand All @@ -39,12 +40,15 @@ func (gh *GitHubClient) GetGitopsCatalogRepo() (*github.Repository, error) {
// ReadGitopsCatalogRepoContents reads the file and directory contents of the Kubefirst gitops catalog
// GitHub repository
func (gh *GitHubClient) ReadGitopsCatalogRepoContents() ([]*github.RepositoryContent, error) {
opts := &github.RepositoryContentGetOptions{
Ref: branch,
}
_, directoryContent, _, err := gh.Client.Repositories.GetContents(
context.Background(),
KubefirstGitHubOrganization,
KubefirstGitopsCatalogRepository,
basePath,
nil,
opts,
)
if err != nil {
return nil, fmt.Errorf("error getting gitops catalog repository contents: %w", err)
Expand Down

0 comments on commit e9c766f

Please sign in to comment.