changemaker

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReEncodeYAML

func ReEncodeYAML(pluginIn, pluginOut interface{}) error

Types

type CommitAnnotations

type CommitAnnotations struct {
	AutoApprove bool
	AutoMerge   bool
}

func MergeAnnotations

func MergeAnnotations(original *CommitAnnotations, priority *CommitAnnotations) *CommitAnnotations

type Factory

type Factory struct {
	Factories []WorkingTreeChangerFactory
}

func (*Factory) Load

type GitCommitter

type GitCommitter interface {
	Commit(w *git.Worktree, msg string, opts *git.CommitOptions, _ autobotcfg.ChangeMakerConfig, perRepo autobotcfg.PerRepoChangeMakerConfig, annotations *CommitAnnotations) (plumbing.Hash, error)
}

func CommitterFromConfig

func CommitterFromConfig(config autobotcfg.CommitterConfig) (GitCommitter, error)

type WorkingTreeChanger

type WorkingTreeChanger interface {
	// ChangeWorkingTree should create any branches it needs.  Each branch
	// will be pushed as a separate PR.  If the branch name exists in the remote, we will attempt
	// a push, but ignore any errors around non-fast-forward.
	ChangeWorkingTree(w *git.Worktree, baseCommit *object.Commit, gitCommitter GitCommitter, baseDir string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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