Help us shape the future of Go! Take the 2026 Go Developer Survey

codeowners

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find added in v0.4.0

func Find(fs _fs.FS) string

func Render added in v0.3.0

func Render(fs _fs.FS, errors Errors, opts RenderOptions) error

Types

type Codeowners added in v0.4.0

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

func Open added in v0.4.0

func Open(fs _fs.FS, path string) (*Codeowners, error)

func (Codeowners) Owners added in v0.4.0

func (c Codeowners) Owners(path string) []string

type Error

type Error struct {
	Kind    ErrorKind `json:"kind"`
	Path    string    `json:"path"`
	Line    int       `json:"line"`
	Column  int       `json:"column"`
	Source  string    `json:"source"`
	Message string    `json:"message"`
}

func (Error) UnknownOwner

func (e Error) UnknownOwner() string

type ErrorKind

type ErrorKind string
const (
	ErrorKindUnknownOwner ErrorKind = "Unknown owner"
)

type Errors

type Errors []Error

func QueryErrors added in v0.3.0

func QueryErrors(client api.GQLClient, repo repository.Repository, ref string) (Errors, error)

func (Errors) Path

func (e Errors) Path() string

func (Errors) UnknownOwners

func (e Errors) UnknownOwners() []string

type RenderOptions added in v0.3.0

type RenderOptions struct {
	Console console.Console
	Fix     bool

	Color struct {
		Comment string
		Error   string
	}
}

Jump to

Keyboard shortcuts

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