Skip to content

Commit

Permalink
rename owner map
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Celentano <[email protected]>
Signed-off-by: Stefano Celentano <[email protected]>
  • Loading branch information
Stefano Celentano authored and boser87 committed Aug 20, 2024
1 parent 4de43cc commit 5ab22d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
)

type Config struct {
HTTP HTTPConfig `validate:"omitempty"`
Providers ProvidersConfig `validate:"omitempty"`
Groups []Group `validate:"dive"`
Checks []Check `validate:"dive"`
Rules []Rule `validate:"dive"`
Labels []string `validate:"dive"`
Interval int
Git GitConfig
OwnerMap map[string]string `yaml:"owner-map"`
HTTP HTTPConfig `validate:"omitempty"`
Providers ProvidersConfig `validate:"omitempty"`
Groups []Group `validate:"dive"`
Checks []Check `validate:"dive"`
Rules []Rule `validate:"dive"`
Labels []string `validate:"dive"`
Interval int
Git GitConfig
CodeownerOverride map[string]string `yaml:"codeowner-override"`
}

type ProvidersConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/codeowners/codeowners.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (c *Codeowners) GetOwners(path string) (string, bool) {
// If config cannot be found, use an empty ownerMap
ownerMap = map[string]string{}
} else {
ownerMap = config.OwnerMap
ownerMap = config.CodeownerOverride
}

owner := owners[0]
Expand Down

0 comments on commit 5ab22d9

Please sign in to comment.