gates

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gates holds the threshold logic of the v1.0 release gates and the post-publish install check (Story 4.18, NFR11). Workflows only run commands and collect files; every pass, fail and pending decision is made here, so it is tested.

Release gates (.github/workflows/release-gates.yml, on release-please pull requests):

gates run -gate <name> -o <dir> [-commit <sha>] -- <command> [args...]
    Runs the command, passes its output through and records its exit code in
    <dir>/<name>.json. Exits with the command's exit code.
gates evaluate [-metrics metrics] [-root .] [-commit <sha>] [-o gates-summary.json] [-summary <file>]
    Evaluates every gate from the files in <metrics> and the repository at <root>,
    writes gates-summary.json (gate, status, value, threshold), prints a table,
    appends a Markdown table to -summary, and exits 1 when any gate fails or is
    pending, naming the gate, the measured value and the threshold.

Post-publish install check (.github/workflows/post-publish.yml):

gates issues -issues <gh issue list JSON> -bodies <dir> [-version X.Y.Z]
gates plan -version X.Y.Z -published-at <RFC 3339> [-root .] [-state <issue body>] [-issue N] [-force]
           [-matrix-file <file> -reports-file <file>] [-now <RFC 3339>]
gates plan-outputs -matrix-file <file> -reports-file <file>
gates fixture -dir <empty dir> -o <fixture.json> [-seed N]
gates check-version -version X.Y.Z [-snapshot S] <version JSON>
gates check-scan -fixture <fixture.json> -stderr <file> <scan JSON>
gates result -o <file> -channel C -method M -os O -arch A -version X.Y.Z -status S [-step S] [-reason R]
gates report -version X.Y.Z -published-at <RFC 3339> -results <dir> [-planned <matrix JSON>] [-state <issue body>] [-force]
             [-root .] [-now <RFC 3339>] [-summary <file>] [-issue <file>] [-status <file>] [-run-url <url>]
gates snapshot

Exit codes: 0 pass, 1 a gate or check failed (or is pending), 2 usage error or an input that could not be read.

Jump to

Keyboard shortcuts

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