mappings

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mappings

type Mappings struct {
	// contains filtered or unexported fields
}

func FromFile

func FromFile(filepath string) (*Mappings, error)

func FromGitHub

func FromGitHub(filepath string, r Repository) (*Mappings, error)

func Parse

func Parse(conf []byte) (*Mappings, error)

func (Mappings) MatchedLabels

func (ms Mappings) MatchedLabels(files []*github.CommitFile) (labels []string)

type Repository

type Repository interface {
	FileContent(filePath string) (*github.RepositoryContent, error)
}

Jump to

Keyboard shortcuts

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