prmanager

package
v0.0.0-...-d40419c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePrOpts

type CreatePrOpts struct {
	CommitBranch    string
	BaseBranch      string
	AuthorName      string
	AuthorEmail     string
	CommitMessage   string
	PrSubject       string
	PrBranch        string
	PrDescription   string
	DestFileGitPath string
	SourceFileBody  []byte
}

type GetPrOpts

type GetPrOpts struct {
	CommitBranch string
	BaseBranch   string
}

type Opts

type Opts struct {
	SourceOwner string
	SourceRepo  string
	PrRepo      string
	PrRepoOwner string
}

type PrCreator

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

func New

func New(retrier *retier.Retrier, opts *Opts) *PrCreator

func (*PrCreator) CreatePr

func (p *PrCreator) CreatePr(ctx context.Context, opts *CreatePrOpts) (string, error)

func (*PrCreator) GetPr

func (p *PrCreator) GetPr(ctx context.Context, opts *GetPrOpts) (string, error)

Jump to

Keyboard shortcuts

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