git

package
v0.2.0-rc.16 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitAndPush

func CommitAndPush(filePath, message string) error

CommitAndPush stages a file, commits with the given message, and pushes to origin.

func GetChangedFiles

func GetChangedFiles(baseSHA, headSHA string) ([]string, error)

GetChangedFiles returns the list of files changed between two commits

func GetInitialCommit

func GetInitialCommit() (string, error)

GetInitialCommit returns the SHA of the first commit in the repository

func GetLatestReleaseTag

func GetLatestReleaseTag(prefix string) (string, string, error)

GetLatestReleaseTag returns the most recent non-prerelease tag (no -rc suffix). This is used to find the base version for calculating next release versions.

func GetLatestTag

func GetLatestTag(prefix string) (string, string, error)

GetLatestTag returns the most recent tag matching the given prefix, sorted by semver. Returns empty string if no matching tags found.

Types

type Commit

type Commit struct {
	Hash           string
	Subject        string
	Body           string
	Author         string
	AuthorEmail    string // Author email for deduplication
	GitHubUsername string // GitHub username (looked up via API)
}

Commit represents a git commit

func GetCommits

func GetCommits(baseSHA, headSHA string, excludePaths []string) ([]Commit, error)

GetCommits returns commits between two SHAs

Jump to

Keyboard shortcuts

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