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

owners

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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"`
	SuppressUnownedWarning      bool         `toml:"suppress_unowned_warning"`
	AllowSelfApproval           bool         `toml:"allow_self_approval"`
	SelfApprovalViaTeams        bool         `toml:"self_approval_via_teams"`
	DisableReviewStatusComments bool         `toml:"disable_review_status_comments"`
	Hooks                       *Hooks       `toml:"hooks"`
}

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"`
}

type Hooks added in v1.12.0

type Hooks struct {
	HunkFilter string `toml:"hunk_filter"`
}

Jump to

Keyboard shortcuts

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