parser

package module
v0.0.0-...-96a55ea Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

README

github-codeowners

A Golang parser for Github's CODEOWNERS files

For more information about CODEOWNERS: https://help.github.com/articles/about-codeowners/

TODO

  • Add a function that given a path, determines the owner(s) based on last matching pattern precedence

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	Path   string
	Owners []Owner
}

Mapping is a Path to []Owner pair

func Parse

func Parse(r io.Reader) ([]Mapping, error)

type Owner

type Owner string

func (Owner) IsEmailAddress

func (u Owner) IsEmailAddress() bool

func (Owner) IsGithubOwner

func (u Owner) IsGithubOwner() bool

func (Owner) IsGithubTeam

func (u Owner) IsGithubTeam() bool

func (Owner) IsValid

func (u Owner) IsValid() bool

Jump to

Keyboard shortcuts

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