owners

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminBypass added in v1.2.0

type AdminBypass struct {
	Enabled      bool     `toml:"enabled"`
	AllowedUsers []string `toml:"allowed_users"`
}

type Config

type Config struct {
	MaxReviews                 *int         `toml:"max_reviews"`
	MinReviews                 *int         `toml:"min_reviews"`
	UnskippableReviewers       []string     `toml:"unskippable_reviewers"`
	Ignore                     []string     `toml:"ignore"`
	Enforcement                *Enforcement `toml:"enforcement"`
	HighPriorityLabels         []string     `toml:"high_priority_labels"`
	AdminBypass                *AdminBypass `toml:"admin_bypass"`
	DetailedReviewers          bool         `toml:"detailed_reviewers"`
	DisableSmartDismissal      bool         `toml:"disable_smart_dismissal"`
	RequireBothBranchReviewers bool         `toml:"require_both_branch_reviewers"`
}

func ReadConfig

func ReadConfig(path string, fileReader codeowners.FileReader) (*Config, error)

type Enforcement

type Enforcement struct {
	Approval  bool `toml:"approval"`
	FailCheck bool `toml:"fail_check"`
}

Jump to

Keyboard shortcuts

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