feat: verify if targetBranch is present in git repo by fty4 · Pull Request #511 · helm/chart-testing · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/chart/chart.go
4 changes: 4 additions & 0 deletions pkg/chart/chart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func (g fakeGit) ValidateRepository() error {
return nil
}

func (g fakeGit) BranchExists(branch string) bool {
return true
}

type fakeAccountValidator struct{}

func (v fakeAccountValidator) Validate(repoDomain string, account string) error {
Expand Down
5 changes: 5 additions & 0 deletions pkg/tool/git.go