Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + func NormLogins(logins []string) sets.String + func SaveFullConfig(full FullConfig, path string) error + func SaveSimpleConfig(simple SimpleConfig, path string) error + type Client struct + func NewClient(gc git.ClientFactory, ghc github.Client, ...) *Client + func (c *Client) ForPlugin(plugin string) Interface + func (c *Client) LoadRepoOwners(org, repo, base string) (RepoOwner, error) + func (c *Client) LoadRepoOwnersSha(org, repo, base, sha string, updateCache bool) (RepoOwner, error) + func (c *Client) Used() bool + func (c *Client) WithFields(fields logrus.Fields) Interface + func (c *Client) WithGitHubClient(client github.Client) Interface + type Config struct + Approvers []string + Labels []string + RequiredReviewers []string + Reviewers []string + type FullConfig struct + Filters map[string]Config + Options dirOptions + func LoadFullConfig(b []byte) (FullConfig, error) + type Interface interface + ForPlugin func(plugin string) Interface + LoadRepoOwners func(org, repo, base string) (RepoOwner, error) + LoadRepoOwnersSha func(org, repo, base, sha string, updateCache bool) (RepoOwner, error) + Used func() bool + WithFields func(fields logrus.Fields) Interface + WithGitHubClient func(client github.Client) Interface + type RepoAliases map[string]sets.String + func ParseAliasesConfig(b []byte) (RepoAliases, error) + func (a RepoAliases) ExpandAlias(alias string) sets.String + func (a RepoAliases) ExpandAliases(logins sets.String) sets.String + func (a RepoAliases) ExpandAllAliases() sets.String + type RepoOwner interface + AllApprovers func() sets.String + AllOwners func() sets.String + AllReviewers func() sets.String + Approvers func(path string) layeredsets.String + Filenames func() ownersconfig.Filenames + FindApproverOwnersForFile func(path string) string + FindLabelsForFile func(path string) sets.String + FindReviewersOwnersForFile func(path string) string + IsAutoApproveUnownedSubfolders func(directory string) bool + IsNoParentOwners func(path string) bool + LeafApprovers func(path string) sets.String + LeafReviewers func(path string) sets.String + ParseFullConfig func(path string) (FullConfig, error) + ParseSimpleConfig func(path string) (SimpleConfig, error) + RequiredReviewers func(path string) sets.String + Reviewers func(path string) layeredsets.String + TopLevelApprovers func() sets.String + type RepoOwners struct + func (o *RepoOwners) AllApprovers() sets.String + func (o *RepoOwners) AllOwners() sets.String + func (o *RepoOwners) AllReviewers() sets.String + func (o *RepoOwners) Approvers(path string) layeredsets.String + func (o *RepoOwners) FindApproverOwnersForFile(path string) string + func (o *RepoOwners) FindLabelsForFile(path string) sets.String + func (o *RepoOwners) FindReviewersOwnersForFile(path string) string + func (o *RepoOwners) IsAutoApproveUnownedSubfolders(ownersFilePath string) bool + func (o *RepoOwners) IsNoParentOwners(path string) bool + func (o *RepoOwners) LeafApprovers(path string) sets.String + func (o *RepoOwners) LeafReviewers(path string) sets.String + func (o *RepoOwners) ParseFullConfig(path string) (FullConfig, error) + func (o *RepoOwners) ParseSimpleConfig(path string) (SimpleConfig, error) + func (o *RepoOwners) RequiredReviewers(path string) sets.String + func (o *RepoOwners) Reviewers(path string) layeredsets.String + func (o *RepoOwners) TopLevelApprovers() sets.String + func (r *RepoOwners) Filenames() ownersconfig.Filenames + type SimpleConfig struct + Options dirOptions + func LoadSimpleConfig(b []byte) (SimpleConfig, error) + func (s *SimpleConfig) Empty() bool