checkout

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkout

type Checkout struct {
	RepoConfig        RepoConfig
	CheckoutDirectory string

	Repo   *git.Repository
	Logger *zapctx.Logger
	// contains filtered or unexported fields
}

func NewCheckout

func NewCheckout(ctx context.Context, logger *zapctx.Logger, cfg RepoConfig, cloneDataDirectory string, auth transport.AuthMethod) (*Checkout, error)

func (*Checkout) Clean

func (c *Checkout) Clean(ctx context.Context) error

func (*Checkout) CurrentConfig

func (c *Checkout) CurrentConfig(ctx context.Context) (*autobotcfg.AutobotPerRepoConfig, error)

func (*Checkout) PushAllNewBranches

func (c *Checkout) PushAllNewBranches(ctx context.Context, client ghapp.GithubAPI) error

func (*Checkout) Refresh

func (c *Checkout) Refresh(ctx context.Context) error

func (*Checkout) SetupForWorkingTreeChanger

func (c *Checkout) SetupForWorkingTreeChanger(ctx context.Context) (*git.Worktree, *object.Commit, error)

type RepoConfig

type RepoConfig interface {
	CloneURL() string
	RemoteBranch() string
	RemoteOwner() string
	RemoteName() string
	fmt.Stringer
}

Jump to

Keyboard shortcuts

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