gitlab

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: 21 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, projectId, branch, password string) (*http.Request, error)

func GetPulls

func GetPulls(ctx context.Context, url, projectId, branch, password string) ([]*gitlabPull, error)

func GetRepoID

func GetRepoID(ctx context.Context, url, owner, repo, password string) (rId string, err error)

Types

type Gitlab

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

func NewGitlab

func NewGitlab(cfg configcli.Config) *Gitlab

func (*Gitlab) Name

func (g *Gitlab) Name() string

func (*Gitlab) RequestClose

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

func (*Gitlab) RequestList

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

func (*Gitlab) RequestOpen

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

func (*Gitlab) RequestUpdate

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