Versions in this module Expand all Collapse all v0 v0.12.0 Jul 19, 2026 Changes in this version + type GitClient interface + ChangedFiles func(ctx context.Context, repoDir, baseRef string) ([]string, error) + DiffHunks func(ctx context.Context, repoDir, baseRef string, paths []string) ([]Hunk, error) + type Hunk struct + EndLine int + FilePath string + StartLine int + type Result struct + HasMore bool + Items []RiskEntry + type RiskEntry struct + HunkCount int + Node graph.Node + RiskScore float64 + type Service struct + func New(repository analyzeapp.ChangeRepository, git GitClient) *Service + func (s *Service) AnalyzePage(ctx context.Context, repoDir, baseRef string, limit, offset int) (Result, error) + func (s *Service) ChangedNodeIDs(ctx context.Context, repoDir, baseRef string) ([]uint, error)