git

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BumpPatchVersion

func BumpPatchVersion(ctx context.Context, tag string) (string, error)

BumpPatchVersion increments the patch version of a semver tag

func CommitAndRelease

func CommitAndRelease(ctx context.Context, changelogEntry string) error

CommitAndRelease performs the full git workflow: 1. git add -A 2. Read CHANGELOG.md and add entry 3. Bump version (patch) 4. git commit 5. git tag 6. git push + push tag

func GetNextVersion added in v0.2.0

func GetNextVersion(ctx context.Context) (string, error)

GetNextVersion determines the next version by bumping the patch version.

Types

type Releaser added in v0.2.26

type Releaser interface {
	GetNextVersion(ctx context.Context) (string, error)
	CommitAndRelease(ctx context.Context, title string) error
}

Releaser handles git commit, tag, and push operations.

func NewReleaser added in v0.2.26

func NewReleaser() Releaser

NewReleaser creates a new Releaser.

Jump to

Keyboard shortcuts

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