commitlog

package
v0.0.7-dev.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SupportedKeys = "ci|refactor|docs|fix|feat|test|chore|other"

SupportedKeys - keys that are supported by the package

Variables

This section is empty.

Functions

func GetCommitFromString

func GetCommitFromString(commitString string, repo *git.Repository) *object.Commit

GetCommitFromString - get commit from hash string

func GetLatestTagFromRepository

func GetLatestTagFromRepository(repository *git.Repository) (*plumbing.Reference, *plumbing.Reference, error)

GetLatestTagFromRepository - Get the latest Tag reference from the repo

func OpenRepository added in v0.0.9

func OpenRepository(path string) *git.Repository

OpenRepository - open the git repository and return repository reference

Types

type ErrMessage

type ErrMessage struct {
	Message string
	Err     error
}

ErrMessage - simple interface around error with a custom message

func CommitLog

func CommitLog(path string, startCommitString string, endCommitString string, inclusionFlags string, skipClassification bool) (string, ErrMessage)

CommitLog - Generate commit log

Jump to

Keyboard shortcuts

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