codeowners

package
v1.18.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 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

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

func (*Ruleset) WithExcludedOwners

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

func (*Ruleset) WorkflowOwners

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

type Scenario

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