Skip to content

Commit

Permalink
fix: fix repo name (#75)
Browse files Browse the repository at this point in the history
fix repo name

Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller authored Oct 23, 2024
1 parent 1bda777 commit fad5678
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ spec:
sha:
type: string
time:
description: 'FIXME: docs, is this commit time, first-became-healthy
time, most-recently-observed-healthy time, etc?'
format: date-time
type: string
required:
Expand Down
4 changes: 2 additions & 2 deletions internal/scms/github/git_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func NewGithubGitAuthenticationProvider(scmProvider *v1alpha1.ScmProvider, secre

func (gh GitAuthenticationProvider) GetGitHttpsRepoUrl(gitRepository v1alpha1.GitRepository) string {
if gh.scmProvider.Spec.GitHub != nil && gh.scmProvider.Spec.GitHub.Domain == "" {
return fmt.Sprintf("https://[email protected]/%s/%s.git", gitRepository.Spec.Owner, gitRepository.Name)
return fmt.Sprintf("https://[email protected]/%s/%s.git", gitRepository.Spec.Owner, gitRepository.Spec.Name)
}
return fmt.Sprintf("https://git@%s/%s/%s.git", gh.scmProvider.Spec.GitHub.Domain, gitRepository.Spec.Owner, gitRepository.Name)
return fmt.Sprintf("https://git@%s/%s/%s.git", gh.scmProvider.Spec.GitHub.Domain, gitRepository.Spec.Owner, gitRepository.Spec.Name)
}

func (gh GitAuthenticationProvider) GetToken(ctx context.Context) (string, error) {
Expand Down

0 comments on commit fad5678

Please sign in to comment.