Skip to content

Commit 1d52e15

Browse files
authored
šŸ› Skip CODEOWNERS file in contributors check if there is a parsing error (#4851)
* skip codeowners file if there is a parsing error Signed-off-by: juanis2112 <juanitagomezr2112@gmail.com> * Add log for codeowners parsing error Signed-off-by: juanis2112 <juanitagomezr2112@gmail.com> --------- Signed-off-by: juanis2112 <juanitagomezr2112@gmail.com>
1 parent 41acae5 commit 1d52e15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ā€Žclients/githubrepo/contributors.goā€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"context"
1919
"fmt"
2020
"io"
21+
"log"
2122
"net/http"
2223
"os"
2324
"strings"
@@ -127,7 +128,7 @@ func mapCodeOwners(handler *contributorsHandler, codeOwnerFile io.ReadCloser, co
127128
}
128129
ruleset, err := codeowners.ParseFile(codeOwnerFile)
129130
if err != nil {
130-
handler.errSetup = fmt.Errorf("error during ParseFile: %w", err)
131+
log.Printf("unable to parse CODEOWNERS file: %v. Skipping...", err)
131132
return
132133
}
133134

0 commit comments

Comments
Ā (0)