Skip to content

Commit

Permalink
fix: add mandatory files full paths + call isLeadingRepo with a custo…
Browse files Browse the repository at this point in the history
…m dir
  • Loading branch information
tomaszbarwicki committed Jan 17, 2024
1 parent 2e6aab1 commit be73b49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release-automation/internal/repo/repo_structure_exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ func (c RepoStructureExists) Test() *tractusx.QualityResult {
path.Join(c.baseDir, "SECURITY.md"),
}

mandatoryForLeadingRepo := []string{"docs", "charts"}
mandatoryForLeadingRepo := []string{
path.Join(c.baseDir, "docs"),
path.Join(c.baseDir, "charts"),
}

printer := &tractusx.StdoutPrinter{}

if isLeadingRepo() {
if isLeadingRepo(c.baseDir) {
listOfMandatoryFilesToBeChecked = append(listOfMandatoryFilesToBeChecked, mandatoryForLeadingRepo...)
}

Expand Down

0 comments on commit be73b49

Please sign in to comment.