codeowners

package
v0.1.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeOwners

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

this struct holds the description of a whole codeowners file

func Get

func Get(ctx context.Context, cl *github.Client, owner string, repo string) (CodeOwners, error)

Get is the "entrypoint" where a codeOwners struct is returned for calling Match on

func (CodeOwners) Match

func (co CodeOwners) Match(ctx context.Context, path string) (users []*github.User, errorSlices []error)

Match a file to some github users (or email addresses) called on a codeOwners struct

func (CodeOwners) String

func (co CodeOwners) String() string

format a codeOwners struct back into a string

Jump to

Keyboard shortcuts

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