gitea

package
v0.0.0-...-831fdfd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DeleteBranch

func DeleteBranch(ctx context.Context, url, owner, repo, branch, username, password string) (*http.Request, error)

func GetPulls

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

Types

type Gitea

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

func NewGitea

func NewGitea(cfg configcli.Config) *Gitea

func (*Gitea) Name

func (g *Gitea) Name() string

func (*Gitea) RequestClose

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

func (*Gitea) RequestList

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

func (*Gitea) RequestOpen

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

func (*Gitea) RequestUpdate

func (g *Gitea) 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