Documentation
¶
Overview ¶
internal/health/details.go
internal/health/health.go
internal/health/summary.go
Index ¶
- Constants
- func AnalyzeDetails(ctx context.Context, lister provider.CommitLister, repo model.Repo, ...) (*model.RepoHealthDetails, []string, error)
- func Classify(lastCommitDate, now time.Time) *model.RepoHealth
- func ClassifyFromCommits(commits []provider.CommitInfo, now time.Time) *model.RepoHealth
- func Summarize(repos []model.RepoStats) *model.HealthSummary
Constants ¶
View Source
const ( Window0to6 = "0-6mo" Window6to12 = "6-12mo" Window12Plus = "12mo+" )
Window labels for bucketing commits by age.
View Source
const ( ActiveThresholdDays = 180 MaintainedThresholdDays = 365 )
Variables ¶
This section is empty.
Functions ¶
func AnalyzeDetails ¶
func AnalyzeDetails(ctx context.Context, lister provider.CommitLister, repo model.Repo, commits []provider.CommitInfo, now time.Time) (*model.RepoHealthDetails, []string, error)
AnalyzeDetails performs deep health analysis on a repo's commits. It returns the details, a list of partial error messages (e.g. per-commit stat failures), and a fatal error.
func Classify ¶
func Classify(lastCommitDate, now time.Time) *model.RepoHealth
Classify returns a RepoHealth based on the last commit date relative to now.
func ClassifyFromCommits ¶
func ClassifyFromCommits(commits []provider.CommitInfo, now time.Time) *model.RepoHealth
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.