codeowners

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodeownersCommand

func NewCodeownersCommand() *cobra.Command

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

type CodeownerStat struct {
	Name        string
	Email       string
	Lines       int
	GitHubAlias string
}

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

Jump to

Keyboard shortcuts

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