git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitDetail

type CommitDetail struct {
	Category     parsers.CCType           `yaml:"category,omitempty"`
	IssueKey     string                   `yaml:"issueKey,omitempty"`
	IsBreaking   bool                     `yaml:"isBreakingChange,omitempty"`
	Summary      string                   `yaml:"summary,omitempty"`
	Message      string                   `yaml:"message,omitempty"`
	Commit       string                   `yaml:"commit,omitempty"`
	IssueTracker parsers.IssueTrackerType `yaml:"issueTrackerType"`
}

func (CommitDetail) String

func (c CommitDetail) String() string

type Git

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

func NewClient

func NewClient(URL, token, issuePattern string, opts ...GitOpt) (Git, error)

func (Git) ExtractCommits

func (g Git) ExtractCommits(id, from, to string) ([]CommitDetail, error)

type GitOpt added in v0.2.0

type GitOpt func(*Git)

func WithCustomPattern added in v0.2.0

func WithCustomPattern(v string) GitOpt

func WithKeepCCWithoutScope added in v0.2.0

func WithKeepCCWithoutScope(v bool) GitOpt

Jump to

Keyboard shortcuts

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