git

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url string, path string) error

func CloneShallow

func CloneShallow(url string, path string, depth int) error

func CreateRelease

func CreateRelease(repo string, tag string, opts ReleaseOptions) error

func CurrentBranch

func CurrentBranch() (string, error)

func CurrentUser

func CurrentUser() (string, error)

func DefaultBranch

func DefaultBranch(repo string) (string, error)

func ListTags

func ListTags(repo string) ([]string, error)

func PreviewRelease

func PreviewRelease(repo string, tag string, opts ReleaseOptions) string

func ReleaseExists

func ReleaseExists(repo string, tag string) (bool, error)

func RepoExists

func RepoExists(repo string) (bool, error)

func TagExists

func TagExists(repo string, tag string) (bool, error)

Types

type ReleaseOptions

type ReleaseOptions struct {
	Title         string
	Target        string
	Draft         bool
	GenerateNotes bool
}

Jump to

Keyboard shortcuts

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