releaseguard

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package releaseguard guards design.md D6's release-automation decision. See tags_test.go's package doc comment for the full rationale.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractShapeRegex

func ExtractShapeRegex(filePath string) (string, error)

ExtractShapeRegex reads the workflow YAML at filePath and returns the literal regex assigned to SHAPE_REGEX in its shape-validation step.

func GlobMatches

func GlobMatches(glob, tag string) bool

GlobMatches reports whether tag matches the GitHub Actions tag glob pattern glob. GitHub Actions tag/branch filters use the same non-`/`-crossing `*` semantics as a shell filename glob (design.md D6: "Actions globs do not cross `/`"), which path.Match already implements. A malformed glob never matches anything, rather than erroring the guard.

func PushTagGlobs

func PushTagGlobs(filePath string) ([]string, error)

PushTagGlobs reads the workflow YAML at filePath and returns its `on.push.tags` glob list, in file order.

func UnfilteredDescribeCalls

func UnfilteredDescribeCalls(filePath string) ([]string, error)

UnfilteredDescribeCalls reads the workflow YAML at path and returns every `git describe --tags` invocation that lacks a `--match` flag -- design.md D6's blast-radius finding: without one, the first reachable providers/go/vX.Y.Z tag becomes LATEST_TAG and corrupts the root release line's derived version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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