mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2026-04-02 22:25:39 +02:00
Harden health checks and refresh GitHub health cache
This commit is contained in:
@@ -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