github

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(dir string, opts CloneOptions) error

func CloneInteractive added in v0.48.1

func CloneInteractive(dir string, opts CloneOptions) error

func EnsureInstalledAndAuthenticated

func EnsureInstalledAndAuthenticated() error

func ExecuteAndGetOutput added in v0.38.0

func ExecuteAndGetOutput(workDir string, args ...string) (string, error)

ExecuteAndGetOutput runs gh command with given args and returns the stdout output.

Types

type CloneOptions

type CloneOptions struct {
	Repo   string
	OutDir string
}

type PullRequestProvider

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

func NewPullRequestProvider

func NewPullRequestProvider(dir string) *PullRequestProvider

func (*PullRequestProvider) Create

func (p *PullRequestProvider) Create(params pr.CreateParams) (string, error)

func (*PullRequestProvider) CreateInteractively

func (p *PullRequestProvider) CreateInteractively(branch string) error

func (*PullRequestProvider) EnsureInstalledAndAuthenticated

func (p *PullRequestProvider) EnsureInstalledAndAuthenticated() error

func (*PullRequestProvider) Exists

func (p *PullRequestProvider) Exists(branch string) (bool, error)

func (*PullRequestProvider) GetBranchesPromotingToEnvironment

func (p *PullRequestProvider) GetBranchesPromotingToEnvironment(env string) ([]string, error)

func (*PullRequestProvider) GetPromotionEnvironment

func (p *PullRequestProvider) GetPromotionEnvironment(branch string) (string, error)

func (*PullRequestProvider) SetPromotionEnvironment

func (p *PullRequestProvider) SetPromotionEnvironment(branch string, env string) error

Jump to

Keyboard shortcuts

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