changeset

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectChangesFromFiles added in v0.8.0

func DetectChangesFromFiles(changedFiles []string, servicePaths map[string][]string) []string

DetectChangesFromFiles matches pre-computed changed files against service paths. Useful when the caller already has the file list (e.g., from GitHub API).

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.

Jump to

Keyboard shortcuts

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