codeowners

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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