Skip to content

Commit 6941e8e

Browse files
committed
skip codewoners file if there is a parsing error
1 parent 80ee3ec commit 6941e8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clients/githubrepo/contributors.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ func mapCodeOwners(handler *contributorsHandler, codeOwnerFile io.ReadCloser, co
127127
}
128128
ruleset, err := codeowners.ParseFile(codeOwnerFile)
129129
if err != nil {
130-
handler.errSetup = fmt.Errorf("error during ParseFile: %w", err)
131-
return
130+
ruleset = nil // skipping CODEOWNERS due to parse error
132131
}
133132

134133
// expanding owners

0 commit comments

Comments
 (0)