changes

package
v0.16.2-rc.0 Latest Latest
Warning

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

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

Documentation

Overview

Package changes detects which files changed between two commits and, from the path rules in the manifest, which component builds and deploys those changes trigger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the detect-changes command

Types

type DetectResult

type DetectResult struct {
	TriggeredBuilds  []string `json:"triggered_builds"`
	TriggeredDeploys []string `json:"triggered_deploys"`
	HasChanges       bool     `json:"has_changes"`
	ChangedFiles     []string `json:"changed_files"`
}

DetectResult is the output of detect-changes command

func Detect

func Detect(cfg *config.TrunkConfig, baseSHA, headSHA string) (*DetectResult, error)

Detect determines which builds and deploys are triggered by changes

Jump to

Keyboard shortcuts

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