mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2026-11-15 21:12:02 +01:00
Harden health checks and refresh GitHub health cache
This commit is contained in:
1 parent
67cc5caaa5
commit
ca2246667c
4 files changed
+2186
-7
No files matched your search
@@ -200,6 +200,12 @@ func healthCmd() *cobra.Command {
|
||||
for _, e := range errs {
|
||||
fmt.Printf(" error: %v\n", e)
|
||||
}
|
||||
if len(infos) == 0 {
|
||||
if len(errs) > 0 {
|
||||
return fmt.Errorf("failed to fetch GitHub metadata for all repositories (%d errors); check network/DNS and GITHUB_TOKEN", len(errs))
|
||||
}
|
||||
return fmt.Errorf("no GitHub repositories found in README")
|
||||
}
|
||||
|
||||
scored := scorer.ScoreAll(infos)
|
||||
cacheEntries := scorer.ToCacheEntries(scored)
|
||||
|
||||
Reference in new issue
Block a user