Documentation
¶
Index ¶
- func ExecContext(ctx context.Context, cmd string, args ...string) (stdout, stderr bytes.Buffer, err error)
- func ExecContextWithStdin(ctx context.Context, stdin io.Reader, cmd string, args ...string) (stdout, stderr bytes.Buffer, err error)
- func GetNameWithOwner(ctx context.Context) (string, error)
- func GetPullRequest(ctx context.Context, number int) (*gitobj.PullRequest, error)
- func GetRepoRoot(ctx context.Context) (string, error)
- func IsDirty(ctx context.Context) (bool, error)
- func IsInRebaseOrAm(ctx context.Context) (bool, error)
- func Path(cmd string) (string, error)
- type CherryPick
- type MergeStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecContext ¶
func ExecContextWithStdin ¶
func GetPullRequest ¶
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)
Click to show internal directories.
Click to hide internal directories.