MCPcopy Create free account
hub / github.com/github/gh-aw / isSemanticVersionTag

Function isSemanticVersionTag

pkg/cli/semver.go:12–14  ·  view source on GitHub ↗

isSemanticVersionTag checks if a ref string looks like a semantic version tag Uses golang.org/x/mod/semver for proper semantic version validation

(ref string)

Source from the content-addressed store, hash-verified

10// isSemanticVersionTag checks if a ref string looks like a semantic version tag
11// Uses golang.org/x/mod/semver for proper semantic version validation
12func isSemanticVersionTag(ref string) bool {
13 return semverutil.IsValid(ref)
14}
15
16// parseVersion parses a semantic version string and returns a *semverutil.SemanticVersion.
17// Uses golang.org/x/mod/semver for proper semantic version parsing.

Callers 5

resolveLatestRefFunction · 0.85
isBranchRefFunction · 0.85
TestIsSemanticVersionTagFunction · 0.85

Calls 1

IsValidFunction · 0.92