codeowners

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render added in v0.3.0

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

Types

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