versioner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocalTag added in v0.2.0

func CreateLocalTag(ctx context.Context, newVersionTag string) error

func GetCurrentVersionTag

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

GetCurrentVersionTag retrieves the most recent Git tag that matches semantic versioning using go-git.

func NewSemverModel added in v0.2.0

func NewSemverModel(currentVersion string) semverModel

NewSemverModel calculates the next possible versions for major/minor/patch and populates the model.

func RunSemVerTUI added in v0.2.0

func RunSemVerTUI(ctx context.Context, currentVersion string) (string, error)

RunSemVerTUI is a helper to run the TUI program and return the chosen version or empty if canceled.

func SuggestNextVersion

func SuggestNextVersion(ctx context.Context, currentVersion, commitMsg string, client *gogpt.Client) (string, error)

SuggestNextVersion uses OpenAI to suggest the next semantic version based on the commit message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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