ownersconfig

package
v0.0.0-...-9b059e1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

View Source
const (
	DefaultOwnersFile        = "OWNERS"
	DefaultOwnersAliasesFile = "OWNERS_ALIASES"
)

Variables

View Source
var FakeFilenames = Filenames{
	Owners:        DefaultOwnersFile,
	OwnersAliases: DefaultOwnersAliasesFile,
}

FakeFilenames fills in for tests that need a Filenames but aren't testing them. While this *is* the default Filenames, production code should not use this var and instead expect to get the default set of filenames when using a resolver.

Functions

This section is empty.

Types

type Filenames

type Filenames struct {
	Owners        string `json:"owners,omitempty"`
	OwnersAliases string `json:"owners_aliases,omitempty"`
}

Filenames configures which file names should be used for the OWNERS and OWNERS_ALIASES concepts for a repo, if it's not the default set.

func FakeResolver

func FakeResolver(_, _ string) Filenames

FakeResolver fills in for tests that use a resolver but aren't testing it. This should not be used in production code.

type Resolver

type Resolver func(org, repo string) Filenames

Jump to

Keyboard shortcuts

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