github

package
v0.0.0-...-8729d0b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPRNotExist = errors.New("pull request does not exist")

Functions

func GetPulls

func GetPulls(ctx context.Context, url, owner, repo, password string) ([]*githubPull, error)

Types

type Github

type Github struct {
	URL        string
	Username   string
	Password   string
	PRTitle    string
	PRBody     string
	Repository string
	Owner      string
	// contains filtered or unexported fields
}

func NewGithub

func NewGithub(cfg configcli.Config) *Github

func (*Github) Name

func (g *Github) Name() string

func (*Github) RequestClose

func (g *Github) RequestClose(ctx context.Context, branch string, path string) error

func (*Github) RequestList

func (g *Github) RequestList(ctx context.Context, branch string) (map[string]string, error)

func (*Github) RequestOpen

func (g *Github) RequestOpen(ctx context.Context, branch string, path string, mod modules.Update) error

func (*Github) RequestUpdate

func (g *Github) RequestUpdate(ctx context.Context, branch string, path string, mod modules.Update) error

Jump to

Keyboard shortcuts

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