Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var TypesInOrder = Types{
"feat",
"fix",
"test",
"docs",
"build",
"refactor",
"chore",
}
TypesInOrder is the standard ordering of types
Functions ¶
func AlwaysStop ¶ added in v0.4.0
AlwaysStop is an StopAt that accepts every commit
Types ¶
type ChangeSet ¶
ChangeSet represents the list of all changes in a commit stream (presumably from a base tag)
func Load ¶
func Load(r *repo.Repository, stopAt StopAt, guess CommitTypeGuesser) (*ChangeSet, error)
Load creates a new CommitSet from a repository
type CommitTypeEntry ¶
CommitTypeEntry represents a list of messages of a specific type
func CommitEntries ¶
func CommitEntries(order []TypeTag, m map[TypeTag][]string) []CommitTypeEntry
CommitEntries returns a list of CommitTypeEntry
type CommitTypeGuesser ¶
CommitTypeGuesser is a guess function to guess commit type from the commit. StandardGuess can be used as a base to fill this in.
func DefaultGuess ¶
func DefaultGuess(tag TypeTag) CommitTypeGuesser
DefaultGuess just returns the specified tag if it has to guess
type StopAt ¶ added in v0.4.0
StopAt is a commit recognizer
func StopAtCount ¶ added in v0.4.0
StopAtCount accepts the specific count of commits given
func StopAtFirstSemver ¶ added in v0.4.0
func StopAtFirstSemver(r *repo.Repository) StopAt
func StopAtHash ¶ added in v0.4.0
StopAtHash stops when the hash is encountered
func StopAtTagMatch ¶ added in v0.4.0
func StopAtTagMatch(r *repo.Repository, matchString func(s string) bool) StopAt
StopAtTagMatch stops when the tag matches a tag referring to this commit