git

package
v1.4.253 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	SHA       string
	Message   string
	Author    string
	Email     string
	Date      time.Time
	IsMerge   bool
	PRNumber  int
	IsVersion bool
	Version   string
}

type Version

type Version struct {
	Name      string
	Date      time.Time
	CommitSHA string
	Commits   []*Commit
	PRNumbers []int
	AISummary string
}

type Walker

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

func NewWalker

func NewWalker(repoPath string) (*Walker, error)

func (*Walker) GetLatestTag

func (w *Walker) GetLatestTag() (string, error)

GetLatestTag returns the name of the most recent tag by committer date

func (*Walker) GetRepoInfo

func (w *Walker) GetRepoInfo() (owner string, name string, err error)

func (*Walker) WalkCommitsSinceTag

func (w *Walker) WalkCommitsSinceTag(tagName string) (*Version, error)

WalkCommitsSinceTag walks commits from the specified tag to HEAD and returns only "Unreleased" version

func (*Walker) WalkHistory

func (w *Walker) WalkHistory() (map[string]*Version, error)

func (*Walker) WalkHistorySinceTag added in v1.4.247

func (w *Walker) WalkHistorySinceTag(sinceTag string) (map[string]*Version, error)

WalkHistorySinceTag walks git history from HEAD down to (but not including) the specified tag and returns any version commits found along the way

Jump to

Keyboard shortcuts

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