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

codeowners

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoOwners = fmt.Errorf("no owners defined")

Functions

This section is empty.

Types

type Ruleset

type Ruleset struct {
	codeowners.Ruleset
	// contains filtered or unexported fields
}

func Load

func Load(paths []string) (*Ruleset, error)

func (*Ruleset) Owners added in v1.16.16

func (r *Ruleset) Owners(includeTestCase bool, scenarios ...Scenario) ([]string, error)

func (*Ruleset) WithExcludedOwners added in v1.16.16

func (r *Ruleset) WithExcludedOwners(excludedOwners []string) *Ruleset

func (*Ruleset) WorkflowOwners added in v1.16.16

func (r *Ruleset) WorkflowOwners(includeWorkflowName bool) ([]string, error)

type Scenario added in v1.16.16

type Scenario interface {
	Name() string
	FilePath() string
}

Scenario represents a piece of logic in the testsuite with a corresponding filepath that indicates ownership (via CODEOWNERS). It is used to inform developers who they may consult in the event that a test fails without a clear indication why.

Jump to

Keyboard shortcuts

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