cherrypicker

package
v0.0.0-...-6801fd0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CherryPicker

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

CherryPicker captures the cherry-pick creation logic in go

func New

func New() *CherryPicker

New returns a cherrypicker with default opts

func NewWithOptions

func NewWithOptions(opts *Options) *CherryPicker

NewCherryPicker returns a cherrypicker with default opts

func (*CherryPicker) CreateCherryPickPR

func (cp *CherryPicker) CreateCherryPickPR(prNumber int, branch string) error

CreateCherryPickPR creates a cherry-pick PR to the the given branch

func (*CherryPicker) CreateCherryPickPRWithContext

func (cp *CherryPicker) CreateCherryPickPRWithContext(ctx context.Context, prNumber int, branch string) error

CreateCherryPickPR creates a cherry-pick PR to the the given branch

type Options

type Options struct {
	RepoPath  string // Local path to the repository
	RepoOwner string // Org of the repo we are using
	RepoName  string // Name of the repository
	ForkOwner string
	Remote    string
}

type State

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

Jump to

Keyboard shortcuts

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