Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReEncodeYAML ¶
func ReEncodeYAML(pluginIn, pluginOut interface{}) error
Types ¶
type CommitAnnotations ¶
func AnnotationsFromConfig ¶
func AnnotationsFromConfig(cfg autobotcfg.PerRepoChangeMakerConfig) *CommitAnnotations
func MergeAnnotations ¶
func MergeAnnotations(original *CommitAnnotations, priority *CommitAnnotations) *CommitAnnotations
type Factory ¶
type Factory struct {
Factories []WorkingTreeChangerFactory
}
func (*Factory) Load ¶
func (f *Factory) Load(changeMakers []autobotcfg.ChangeMakerConfig, repoCfg autobotcfg.AutobotPerRepoConfig) ([]WorkingTreeChanger, error)
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 }
type WorkingTreeChangerFactory ¶
type WorkingTreeChangerFactory func(cfg autobotcfg.ChangeMakerConfig, perRepo autobotcfg.PerRepoChangeMakerConfig) ([]WorkingTreeChanger, error)
Click to show internal directories.
Click to hide internal directories.