git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloner added in v0.2.0

type Cloner interface {
	Clone(
		ctx context.Context,
		uri, branch, fixedClonePath string,
	) (clonePath string, err error)
	Close()
}

func NewCloner added in v0.2.0

func NewCloner() Cloner

type Publisher

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

Publisher publishes changes to git, including opening PRs

func NewPublisher

func NewPublisher(baseBranch string, dir string) *Publisher

func (*Publisher) Init

func (p *Publisher) Init(ctx context.Context) error

func (*Publisher) IsClean

func (p *Publisher) IsClean() bool

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, filePaths []string, confirm bool) error

func (*Publisher) StashChanges added in v0.1.1

func (p *Publisher) StashChanges(ctx context.Context) (func() error, error)

Jump to

Keyboard shortcuts

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