clients

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepoUnavailableError

func NewRepoUnavailableError(err error) error

Types

type BranchProtectionRule

type BranchProtectionRule struct {
	RequiredApprovingReviewCount int
}

type BranchRef

type BranchRef struct {
	Name                 string
	BranchProtectionRule BranchProtectionRule
}

type ErrRepoUnavailable

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

UPGRADEv2: use ErrRepoUnreachable instead.

func (*ErrRepoUnavailable) Error

func (e *ErrRepoUnavailable) Error() string

func (*ErrRepoUnavailable) Unwrap

func (e *ErrRepoUnavailable) Unwrap() error

type Label

type Label struct {
	Name string
}

type MergeCommit

type MergeCommit struct {
	AuthoredByCommitter bool
}

type PullRequest

type PullRequest struct {
	MergedAt    time.Time
	MergeCommit MergeCommit
	Number      int
	Labels      []Label
	Reviews     []Review
}

nolint: govet

type RepoClient

type RepoClient interface {
	InitRepo(owner, repo string) error
	ListFiles(predicate func(string) (bool, error)) ([]string, error)
	GetFileContent(filename string) ([]byte, error)
	ListMergedPRs() ([]PullRequest, error)
	GetDefaultBranch() (BranchRef, error)
	Close() error
}

type Review

type Review struct {
	State string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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