versioner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentVersionTag

func GetCurrentVersionTag() (string, error)

GetCurrentVersionTag retrieves the most recent git tag that looks like vX.Y.Z If no tag exists, returns an empty string.

func RunGoReleaser

func RunGoReleaser() error

RunGoReleaser runs a local goreleaser release --rm-dist, building and publishing artifacts

func SuggestNextVersion

func SuggestNextVersion(ctx context.Context, currentVersion, commitMsg, apiKey string) (string, error)

SuggestNextVersion uses OpenAI to suggest a semantic version bump based on the latest commit message.

func TagAndPush

func TagAndPush(newVersionTag string) error

TagAndPush creates a new git tag and pushes it to origin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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