apply

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	// contains filtered or unexported fields
}

Applier handles the apply logic for updating files in a repository.

func NewApplier

func NewApplier(cfg *config.Config, gitOps git.Operations, newContent []byte) *Applier

NewApplier creates a new Applier instance.

func (*Applier) Run

func (a *Applier) Run() (*Result, error)

Run executes the apply operation and returns the result.

type Result

type Result struct {
	// DefaultBranch is the detected default branch name.
	DefaultBranch string
	// Action describes what action was taken or would be taken.
	Action string
	// BranchName is the name of the branch that was/would be created.
	BranchName string
	// PRURL is the URL of the created PR (only set in non-dry-run mode).
	PRURL string
	// NoActionReason explains why no action was taken (if applicable).
	NoActionReason string
}

Result represents the outcome of an apply operation.

Jump to

Keyboard shortcuts

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