owners

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(githubClient github.Client,
	gitClientFactory gitv2.ClientFactory,
) *repoowners.Client

NewClient returns a new repoowners.Client from a prow/github.Client and prow/git/v2.ClientFactory. It wraps around repoowners.NewClient facilitating the client build configuration with default settings. It possibly returns an error.

Types

type Handle

type Handle string

Handle represents a GitHub user handle.

type OwnersLoadingOptions

type OwnersLoadingOptions struct {
	// RepositoryName represents the git repository name at which load the Owners config.
	RepositoryName string

	// GitRef represents the git reference at which load the Owners config.
	GitRef string

	// ConfigPath represents the path to the Owners config file in the repository.
	ConfigPath string

	// ApproversOnly represents the option to load only the approvers.
	ApproversOnly bool

	// ReviewersOnly represents the option to load only the reviewers.
	ReviewersOnly bool
}

OwnersLoadingOptions represents OWNERS loading options.

func (*OwnersLoadingOptions) AddPFlags

func (o *OwnersLoadingOptions) AddPFlags(pfs *pflag.FlagSet)

func (*OwnersLoadingOptions) Validate

func (o *OwnersLoadingOptions) Validate() error

Jump to

Keyboard shortcuts

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