builder

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	DryRun          bool
	Verbose         bool
	SkipLockChanges bool

	// Git options.
	Workspace    string
	Owner        string
	Repo         string
	Branch       string
	CommitBranch *string

	// PR options.
	Title     string
	Body      string
	Token     *string
	Signature *object.Signature
	Signoff   bool

	// Binding
	Username string
	Password string
}

func (*Builder) Commit

func (b *Builder) Commit(r *git.Repository) (plumbing.ReferenceName, error)

Commit will commit changes to the local branch, and then optionally branch a new branch if set.

func (*Builder) Do

func (b *Builder) Do() error

func (*Builder) PR

func (b *Builder) PR(branch string) error

func (*Builder) Push

func (b *Builder) Push(r *git.Repository, rs config.RefSpec) error

Jump to

Keyboard shortcuts

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