version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides SHA detection and semver comparison helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOutdated

func IsOutdated(current, latest string) bool

IsOutdated reports whether latest is strictly newer than current. An unparseable latest is never outdated; an unparseable current (branch, raw SHA) is treated as outdated so it surfaces in `gha update`.

func IsSha

func IsSha(ref string) bool

IsSha reports whether ref is a full 40-character commit SHA (already pinned).

func PickLatest

func PickLatest(tags []string) string

PickLatest returns the highest stable semver tag from the list, preserving the original tag string (e.g. "v4.1.2"). Pre-releases and unparseable tags are ignored. Returns "" when nothing qualifies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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