We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50b9ddf + cf8ef06 commit 0d270e5Copy full SHA for 0d270e5
1 file changed
lib.go
@@ -52,7 +52,7 @@ func RewriteCodeownersRules(path string) ([]string, error) {
52
var rewrittenRules []string
53
54
err = walkCodeownersFiles(root, func(coPath string) error {
55
- rules, procErr := processCodeownersFile(path, coPath)
+ rules, procErr := processCodeownersFile(root, coPath)
56
if procErr != nil {
57
return procErr
58
}
@@ -61,6 +61,10 @@ func RewriteCodeownersRules(path string) ([]string, error) {
61
return nil
62
})
63
64
+ if err != nil {
65
+ return nil, fmt.Errorf("error while processing CODEOWNERS files: %w", err)
66
+ }
67
+
68
return rewrittenRules, nil
69
70
0 commit comments