Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodeownersCommand ¶
Types ¶
type AuthorStatSlice ¶
type AuthorStatSlice []*CodeownerStat
AuthorStatSlice is a slice of codeowner stats. This is a utility type that makes turning a mapping of author stats to slices easy.
type AuthorStats ¶
type AuthorStats map[string]*CodeownerStat
AuthorStats is a mapping of author name email combinations to codeowner stats. Example: { "First Last name@domain.com": { Codeowner stat }}
func (AuthorStats) ToSortedSlice ¶
func (as AuthorStats) ToSortedSlice() AuthorStatSlice
type CodeownerStat ¶
CodeownerStat is the base struct of name, email, lines changed, and the configured GitHub alias for a given codeowner. This is derived from git reflog commits and diffs.
type FileStats ¶
type FileStats map[string]AuthorStats
FileStats is a mapping of filenames to author stats. Example: { "path/to/file": { Author stats }}
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options for the codeowners generation command
type ProcessOptions ¶
type ProcessOptions struct {
// contains filtered or unexported fields
}
ProcessOptions are the options for iterating a git reflog and deriving the codeowners