vcs

package
v0.0.0-...-af569e1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeCreatedByMe  Scope = "created_by_me"
	ScopeAssignedToMe Scope = "assigned_to_me"
	ScopeAll          Scope = "all"

	SortAsc  Sort = "asc"
	SortDesc Sort = "desc"

	StateClosed State = "closed"
	StateLocked State = "locked"
	StateMerged State = "merged"
	StateOpened State = "opened"
)

Variables

View Source
var False = false

Functions

This section is empty.

Types

type Gitlab

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

func NewGitlab

func NewGitlab(baseURL, bearer string) (*Gitlab, error)

func (*Gitlab) ListPullRequests

func (g *Gitlab) ListPullRequests(ctx context.Context, projectID string, opts GitlabOptions) ([]preport.PullRequest, error)

type GitlabOptions

type GitlabOptions struct {
	Scope           Scope
	State           State
	IsDraft         *bool
	HasAssignee     *bool
	HasBeenApproved *bool
	HasReviewer     *bool
	Sort            Sort
	PerPage         int
}

GitlabOptions are parameters used to filter the pull requests; values with the respective type's zero values are discarded.

type Scope

type Scope string

type Sort

type Sort string

type State

type State string

Jump to

Keyboard shortcuts

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