git

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	GetCommits(string, string, string) ([]cmd.Commit, error)
	GetPreviousTag(string, string) (string, error)
}

Getter is interface for GetTasks dependencies for easier mocking

type Git

type Git struct {
	Path         string
	Dependencies Getter
	// contains filtered or unexported fields
}

Git keeps only dependencies

func New

func New(path string, log pslog.Logger) Git

New creates Git with default dependencies

func (*Git) GetTasks

func (g *Git) GetTasks(tag string) ([]string, error)

GetTasks gets list of Jira taskIDs from commits

Jump to

Keyboard shortcuts

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