gommit

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion return app version

func IsZeroMatching

func IsZeroMatching(matching *Matching) bool

IsZeroMatching check if Matching struct equals zero

func MatchRangeCommitQuery

func MatchRangeCommitQuery(query RangeCommitQuery) (*[]*Matching, error)

MatchRangeCommitQuery trigger regexp matching against a range message commits

Types

type CommitQuery

type CommitQuery struct {
	Path     string
	ID       string
	Matchers map[string]string
	Options  map[string]bool
}

CommitQuery to retrieves a commit and do checking

type Matching

type Matching struct {
	Context      map[string]string
	MessageError error
	SummaryError error
}

Matching represents an error when something goes wrong

func MatchCommitQuery

func MatchCommitQuery(query CommitQuery) (*Matching, error)

MatchCommitQuery trigger regexp matching against a commit

func MatchMessageQuery

func MatchMessageQuery(query MessageQuery) (*Matching, error)

MatchMessageQuery trigger regexp matching against a message

type MessageQuery

type MessageQuery struct {
	Message  string
	Matchers map[string]string
	Options  map[string]bool
}

MessageQuery to check only commit message

type RangeCommitQuery

type RangeCommitQuery struct {
	Path     string
	From     string
	To       string
	Matchers map[string]string
	Options  map[string]bool
}

RangeCommitQuery to retrieves commits and do checking

Jump to

Keyboard shortcuts

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