Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangeDetector ¶
type ChangeDetector interface {
DetectChanges(ctx context.Context, repo, branch, baseRef string, servicePaths map[string][]string) ([]string, error)
}
ChangeDetector is responsible for determining which services have changed
type GitChangeDetector ¶
type GitChangeDetector struct {
// WorkDir is the git working directory. If empty, uses current directory.
WorkDir string
}
GitChangeDetector detects changed services by running git diff and matching changed file paths against the configured service path prefixes.
func (*GitChangeDetector) DetectChanges ¶
func (g *GitChangeDetector) DetectChanges(ctx context.Context, repo, branch, baseRef string, servicePaths map[string][]string) ([]string, error)
DetectChanges runs git diff between baseRef and HEAD (or branch), then matches changed files against servicePaths to determine which services are affected.
Click to show internal directories.
Click to hide internal directories.