filecontentchangemaker

package
v0.0.0-...-ebf29b9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentChangeCheck

type ContentChangeCheck interface {
	NewContent(ctx context.Context, file ReadableFile) (*FileChange, error)
}

type ExpectedChange

type ExpectedChange struct {
	FileChange
	FileName string
}

type FileChange

type FileChange struct {
	NewContent    io.WriterTo
	CommitTitle   string
	CommitMessage string
	AutoApprove   bool
	AutoMerge     bool
	GroupHash     string
}

type FileContentWorkingTreeChanger

type FileContentWorkingTreeChanger struct {
	ContentChangeCheck ContentChangeCheck
	Logger             *zapctx.Logger
	Cfg                autobotcfg.ChangeMakerConfig
	PerRepo            autobotcfg.PerRepoChangeMakerConfig
}

func (*FileContentWorkingTreeChanger) ChangeWorkingTree

func (f *FileContentWorkingTreeChanger) ChangeWorkingTree(w *git.Worktree, baseCommit *object.Commit, gitCommitter changemaker.GitCommitter, _ string) error

type GroupedChange

type GroupedChange struct {
	CommitTitle   string
	CommitMessage string
	GroupHash     string
	AutoMerge     bool
	AutoApprove   bool
	Changes       []SingleChange
}

type ReadableFile

type ReadableFile interface {
	Name() string
	io.WriterTo
}

type SingleChange

type SingleChange struct {
	FileName   string
	NewContent io.WriterTo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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