health

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

internal/health/details.go

internal/health/health.go

internal/health/summary.go

Index

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

func Summarize

func Summarize(repos []model.RepoStats) *model.HealthSummary

Summarize aggregates health data across all repos into a HealthSummary. Returns nil if no repo has health data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL