git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecContext

func ExecContext(ctx context.Context, cmd string, args ...string) (stdout, stderr bytes.Buffer, err error)

func ExecContextWithStdin

func ExecContextWithStdin(ctx context.Context, stdin io.Reader, cmd string, args ...string) (stdout, stderr bytes.Buffer, err error)

func GetNameWithOwner

func GetNameWithOwner(ctx context.Context) (string, error)

func GetPullRequest

func GetPullRequest(ctx context.Context, number int) (*gitobj.PullRequest, error)

func GetRepoRoot

func GetRepoRoot(ctx context.Context) (string, error)

func IsDirty

func IsDirty(ctx context.Context) (bool, error)

func IsInRebaseOrAm

func IsInRebaseOrAm(ctx context.Context) (bool, error)

func Path

func Path(cmd string) (string, error)

Types

type CherryPick

type CherryPick struct {
	PRNumber      int
	OnTo          string
	MergeStrategy MergeStrategy
}

func (*CherryPick) RunWithContext

func (cherryPick *CherryPick) RunWithContext(ctx context.Context) error

type MergeStrategy

type MergeStrategy string
const (
	MergeStrategyRebase MergeStrategy = "rebase"
	MergeStrategySquash MergeStrategy = "squash"
	MergeStrategyAuto   MergeStrategy = "auto"
)

func PRMergedWith

func PRMergedWith(ctx context.Context, prNumber int) (MergeStrategy, error)

Jump to

Keyboard shortcuts

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