chore: add log message for missing PRs in cache

This commit is contained in:
Kayvan Sylvan
2025-07-15 18:27:06 -07:00
parent d3bba5d026
commit 6d8eb3d2b9

View File

@@ -224,6 +224,9 @@ func (g *Generator) fetchPRs() error {
}
}
if missingPRs {
fmt.Fprintf(os.Stderr, "Full sync triggered due to missing PRs in cache.\n")
}
// If we have never synced or it's been more than 24 hours, do a full sync
// Also sync if we have versions with PR numbers that aren't cached
needsSync := lastSync.IsZero() || time.Since(lastSync) > 24*time.Hour || g.cfg.ForcePRSync || missingPRs