status

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadgeColor added in v1.0.0

func BadgeColor(coverage int) string

BadgeColor returns the shields.io color hex for a coverage percentage.

func FormatBadgeMarkdown added in v1.0.0

func FormatBadgeMarkdown(coverage int, label string) string

FormatBadgeMarkdown generates a shields.io badge markdown snippet.

Types

type CoverageResult added in v1.0.0

type CoverageResult struct {
	TotalCommits  int
	MergeCommits  int
	RebaseCommits int
	Eligible      int
	Documented    int
	DocSkipped    int
	Covered       int
	Gaps          int
	Coverage      int     // 0-100 percentage
	SkipRate      float64 // 0-1
}

CoverageResult holds documentation coverage metrics.

func CalculateCoverage added in v1.0.0

func CalculateCoverage(docsDir string, gitAdapter domain.GitAdapter) CoverageResult

CalculateCoverage computes documentation coverage for the repository.

type StatusInfo

type StatusInfo struct {
	ProjectName          string
	HookInstalled        bool
	DocCount             int
	PendingCount         int
	ExpressCount         int
	CompleteCount        int
	ReadErrors           int
	AngelaMode           string // "draft", "polish"
	AIProvider           string // "anthropic", "openai", ""
	HealthIssues         int
	AngelaSuggestions    int             // total suggestions across all docs
	AngelaDocsNeedReview int             // docs with at least 1 suggestion
	Coverage             *CoverageResult // doc coverage (nil when git is unavailable)
}

StatusInfo holds all data needed to render the status dashboard.

func CollectStatus

func CollectStatus(cfg *config.Config, git domain.GitAdapter, loreDir string) (*StatusInfo, error)

CollectStatus gathers all status information from the repository.

Jump to

Keyboard shortcuts

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