owners

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OwnerSourceCodeowners   = "codeowners"
	OwnerSourceCustomMap    = "custom_owner_mapping"
	OwnerSourceService      = "service_catalog"
	OwnerSourceBackstage    = "backstage_catalog"
	OwnerSourceGitHub       = "github_metadata"
	OwnerSourceRepoFallback = "repo_fallback"
	OwnerSourceConflict     = "multi_repo_conflict"
	OwnerSourceMissing      = "missing_owner"

	OwnershipStatusExplicit   = "explicit"
	OwnershipStatusInferred   = "inferred"
	OwnershipStatusUnresolved = "unresolved"

	OwnershipStateExplicit    = "explicit_owner"
	OwnershipStateInferred    = "inferred_owner"
	OwnershipStateConflicting = "conflicting_owner"
	OwnershipStateMissing     = "missing_owner"
)

Variables

This section is empty.

Functions

func FallbackOwner added in v1.0.11

func FallbackOwner(repo, org string) string

func ResolveOwner

func ResolveOwner(root, repo, org, location string) string

ResolveOwner derives ownership from CODEOWNERS with deterministic fallback.

Types

type Metadata added in v1.2.0

type Metadata struct {
	Topics []string `json:"topics,omitempty" yaml:"topics,omitempty"`
	Teams  []string `json:"teams,omitempty" yaml:"teams,omitempty"`
}

type Resolution added in v1.0.11

type Resolution struct {
	Owner               string
	OwnerSource         string
	OwnershipStatus     string
	OwnershipState      string
	OwnershipConfidence float64
	EvidenceBasis       []string
	ConflictOwners      []string
}

func Resolve added in v1.0.11

func Resolve(root, repo, org, location string) Resolution

func ResolveWithMetadata added in v1.2.0

func ResolveWithMetadata(root, repo, org, location string, metadata Metadata) Resolution

Jump to

Keyboard shortcuts

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